Commit 8deb180b authored by chrissi^'s avatar chrissi^
Browse files

MqttConnector: Log incoming messages


Signed-off-by: chrissi^'s avatarChris Fiege <chris@tinyhost.de>
parent 523f8acc
......@@ -83,6 +83,7 @@ class MqttConnector:
def _cb(self, topic, msg):
topic = topic.decode()
msg = msg.decode()
print("MQTT: IN: '{}': '{}'".format(topic, msg))
for f in self._cb_list:
if f(topic, msg):
break
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment