Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
92aeb8efdf
|
|||
8120df60ac
|
@ -27,5 +27,5 @@ WORKDIR ${APP_DIR}
|
|||||||
VOLUME ${CONF_DIR}
|
VOLUME ${CONF_DIR}
|
||||||
|
|
||||||
|
|
||||||
CMD "python digitaltwin1.py -f ./config/config.ini"
|
CMD [ "/usr/local/bin/python", "digitaltwin1.py", "-f", "./config/config.ini" ]
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ class MqttCoilSubscriber(AbstractMqttPublisher):
|
|||||||
|
|
||||||
def localLoop(self):
|
def localLoop(self):
|
||||||
while True:
|
while True:
|
||||||
sleep(self.config["analogInputPublishPeriod"])
|
sleep(float(self.config["analogInputPublishPeriod"]))
|
||||||
|
|
||||||
def onMessage(self, topic, payload):
|
def onMessage(self, topic, payload):
|
||||||
logger.warning("mqtt message received: {} -> {}".format(topic, str(payload)))
|
logger.warning("mqtt message received: {} -> {}".format(topic, str(payload)))
|
||||||
|
Reference in New Issue
Block a user