From 8b630b8ddc098d0fa9122a712350e8fdf02da875 Mon Sep 17 00:00:00 2001 From: jerick Date: Thu, 1 Dec 2022 11:24:38 -0500 Subject: [PATCH] Testing local variable error --- mqtt/tempSensor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mqtt/tempSensor.py b/mqtt/tempSensor.py index 7f92645..82ffe7f 100644 --- a/mqtt/tempSensor.py +++ b/mqtt/tempSensor.py @@ -85,7 +85,8 @@ def publish(client, temp, humidity): while True: client = connect_mqtt() client.loop_start() - temp, humidity = getValues(sensor) + #temp, humidity = getValues(sensor) + getValues(sensor) publish(client, temp, humidity) time.sleep (60.0) client.loop_stop() #Stop loop