Make the test asset useable

This commit is contained in:
Daniel Kluge
2023-11-01 20:38:59 +01:00
parent 948aa78324
commit 7d21df351b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -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)