defines changed to software dir and topics added & callback messages added in backend
This commit is contained in:
1 parent
d54bfdd101
commit
f3fab66cb5
7 files changed
+105
-107
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user