defines changed to software dir and topics added & callback messages added in backend
This commit is contained in:
@@ -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