Update tower.py

main
RangeOfGlitching 4 years ago committed by GitHub
parent 28951fdc83
commit 2aae546145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save