Skip to content
Snippets Groups Projects
Commit b1610bce authored by Michael Loipführer's avatar Michael Loipführer
Browse files

fix mqtt

parent c37031a6
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,8 @@ class MQTT:
async def handle_message(self, msg):
self.logger.debug("Received mqtt message on topic %s: %s", msg.topic, msg.data)
if not msg.data.isnumeric():
payload = msg.data.decode()
if not payload.isnumeric():
self.logger.warning(
"Received invalid mqtt payload on topic %s: %s", msg.topic, msg.data
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment