Update tower.py

This commit is contained in:
RangeOfGlitching
2022-07-10 18:09:15 +08:00
committed by GitHub
parent 28951fdc83
commit 2aae546145
+7 -5
View File
@@ -47,8 +47,10 @@ client.connect(mqtt_config["host"], mqtt_config["port"], 60)
client.loop_start()
# publish(topicBroadcast, "Connect", True)
if connect_flag:
while True:
command = input("command: ")
publish(mqtt_config["topic"], command)
while True:
if connect_flag:
break
while True:
command = input("command: ")
publish(mqtt_config["topic"], command)