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