From 8c35551fcf59e34bea89e1a9512578280c347d6a Mon Sep 17 00:00:00 2001 From: robert Date: Sun, 14 Feb 2021 22:06:48 +0100 Subject: [PATCH] move sleep --- mqtt_publish_temp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mqtt_publish_temp.py b/mqtt_publish_temp.py index eb3371a..a5004a3 100644 --- a/mqtt_publish_temp.py +++ b/mqtt_publish_temp.py @@ -58,9 +58,9 @@ while True: client.publish(humidity_topic, humidity) client.publish(time_topic, dt_string) - time.sleep(30) - #Output data to screen print dt_string print temperature - print humidity \ No newline at end of file + print humidity + + time.sleep(30) \ No newline at end of file