From 83004d35fa93f6f14442230dee06e31e0e6bf129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 23:07:26 +0100 Subject: [PATCH] added decode for publish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app.py b/server/app.py index 853c6cc..b30f367 100644 --- a/server/app.py +++ b/server/app.py @@ -111,8 +111,8 @@ def connect_mqtt(): def mqtt_publisher(): def on_message(mqttc, obj, msg): - print(msg.payload) - print(type(msg.payload)) + print(msg.payload.decode) + print(type(msg.payload.decode)) global TUBE_INDEX TUBE_INDEX = msg.payload