Spaces:
Sleeping
Sleeping
LapStore commited on
Commit ·
6424caa
1
Parent(s): 287b9d1
debug mqtt
Browse files- mqtt_manager.py +1 -1
mqtt_manager.py
CHANGED
|
@@ -33,7 +33,7 @@ def mqtt_listener():
|
|
| 33 |
def on_message(client, userdata, message):
|
| 34 |
msg = message.payload.decode()
|
| 35 |
topic = message.topic
|
| 36 |
-
tl_id =
|
| 37 |
print(f"📥 Reply Received on {topic}: {msg}")
|
| 38 |
if (msg == 'AVBL'):
|
| 39 |
client.publish(topic_msg(tl_id), 'DONE'+str(msg))
|
|
|
|
| 33 |
def on_message(client, userdata, message):
|
| 34 |
msg = message.payload.decode()
|
| 35 |
topic = message.topic
|
| 36 |
+
tl_id = topic.split('/')[1]
|
| 37 |
print(f"📥 Reply Received on {topic}: {msg}")
|
| 38 |
if (msg == 'AVBL'):
|
| 39 |
client.publish(topic_msg(tl_id), 'DONE'+str(msg))
|