added decode for publish

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 23:07:26 +01:00
parent 77ad069eec
commit 83004d35fa
1 changed files with 2 additions and 2 deletions

View File

@ -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