Make the test asset useable
This commit is contained in:
@@ -16,6 +16,6 @@ client.connect(broker, 1883, 60)
|
||||
# Send the current datetime stamp to the topic "testopic/testparam1" and "testopic/testparam2" every 1 second
|
||||
while True:
|
||||
now = datetime.now()
|
||||
client.publish("testopic/testparam1", str(now))
|
||||
client.publish("testopic/testparam2", str(now))
|
||||
client.publish("testtopic/testparam1", str(now))
|
||||
client.publish("testtopic/testparam2", str(now))
|
||||
time.sleep(1)
|
||||
Reference in New Issue
Block a user