Testing local variable error
This commit is contained in:
@@ -85,7 +85,8 @@ def publish(client, temp, humidity):
|
|||||||
while True:
|
while True:
|
||||||
client = connect_mqtt()
|
client = connect_mqtt()
|
||||||
client.loop_start()
|
client.loop_start()
|
||||||
temp, humidity = getValues(sensor)
|
#temp, humidity = getValues(sensor)
|
||||||
|
getValues(sensor)
|
||||||
publish(client, temp, humidity)
|
publish(client, temp, humidity)
|
||||||
time.sleep (60.0)
|
time.sleep (60.0)
|
||||||
client.loop_stop() #Stop loop
|
client.loop_stop() #Stop loop
|
||||||
|
|||||||
Reference in New Issue
Block a user