diff --git a/server/app.py b/server/app.py index b494954..98bce5b 100644 --- a/server/app.py +++ b/server/app.py @@ -112,7 +112,7 @@ def connect_mqtt(): def mqtt_publisher(): def on_message(mqttc, obj, msg): global TUBE_INDEX - TUBE_INDEX = list(msg.payload.decode) + TUBE_INDEX = list(msg.payload.decode()) # Set Connecting Client ID mqtt_client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2)