Spaces:
Sleeping
Sleeping
LapStore commited on
Commit ·
287b9d1
1
Parent(s): 0b343e5
debug mqtt
Browse files- mqtt_manager.py +2 -2
mqtt_manager.py
CHANGED
|
@@ -64,7 +64,7 @@ def mqtt_publisher_loop(tl_id):
|
|
| 64 |
|
| 65 |
last_state = None
|
| 66 |
while True:
|
| 67 |
-
current_state =
|
| 68 |
'''
|
| 69 |
if current_state != last_state:
|
| 70 |
topic = topic_msg(tl_id)
|
|
@@ -74,7 +74,7 @@ def mqtt_publisher_loop(tl_id):
|
|
| 74 |
|
| 75 |
'''
|
| 76 |
if current_state != last_state:
|
| 77 |
-
print(f"📡 state {current_state} on {topic_msg(tl_id)}")
|
| 78 |
|
| 79 |
if current_state != state.status_free:
|
| 80 |
print("in inner mqtt funciton")
|
|
|
|
| 64 |
|
| 65 |
last_state = None
|
| 66 |
while True:
|
| 67 |
+
current_state = state.request[tl_id]['State']
|
| 68 |
'''
|
| 69 |
if current_state != last_state:
|
| 70 |
topic = topic_msg(tl_id)
|
|
|
|
| 74 |
|
| 75 |
'''
|
| 76 |
if current_state != last_state:
|
| 77 |
+
print(f"📡 state {current_state} on {topic_msg(tl_id)} ,state")
|
| 78 |
|
| 79 |
if current_state != state.status_free:
|
| 80 |
print("in inner mqtt funciton")
|