Spaces:
Sleeping
Sleeping
LapStore commited on
Commit ·
9004c90
1
Parent(s): b050a4f
debug mqtt
Browse files- mqtt_manager.py +2 -1
mqtt_manager.py
CHANGED
|
@@ -79,7 +79,8 @@ def mqtt_publisher_loop(tl_id):
|
|
| 79 |
if current_state != state.status_free:
|
| 80 |
topic = topic_msg(tl_id)
|
| 81 |
pub_client.publish(topic, current_state)
|
| 82 |
-
|
|
|
|
| 83 |
|
| 84 |
|
| 85 |
time.sleep(.01)
|
|
|
|
| 79 |
if current_state != state.status_free:
|
| 80 |
topic = topic_msg(tl_id)
|
| 81 |
pub_client.publish(topic, current_state)
|
| 82 |
+
|
| 83 |
+
last_state = current_state
|
| 84 |
|
| 85 |
|
| 86 |
time.sleep(.01)
|