defines changed to software dir and topics added & callback messages added in backend

This commit is contained in:
caliskanbi
2023-04-24 11:21:01 +02:00
parent d54bfdd101
commit f3fab66cb5
7 changed files with 105 additions and 107 deletions
@@ -9,8 +9,7 @@ client = mqtt.Client("Temperature_Inside")
client.connect(mqttBroker)
while True:
randNumber = uniform(20.0, 21.0)
client.publish("Robot/Data/Battery")
print("Just published " + str(randNumber) + " to topic TEMPERATURE")
client.publish("ROBOT/ACTION/DRIVE")
print("Just published to topic TEMPERATURE")
time.sleep(0.5)