diff options
author | Joe Robinson <joe@lc8n.com> | 2019-02-17 21:04:50 +0000 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2019-02-17 21:04:50 +0000 |
commit | d162224d4f6f2ea97935f73a635b13db47c4c5a8 (patch) | |
tree | 3585b71df991d684eb3f56f081c22e865df1f8a4 | |
parent | b06d4a4ce0f81d03c77f81a5efa1fde243a9497f (diff) |
Fix syntax
-rw-r--r-- | fruitfly.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fruitfly.py b/fruitfly.py index bf4a534..53d20e2 100644 --- a/fruitfly.py +++ b/fruitfly.py @@ -16,11 +16,10 @@ print("connecting to broker " + broker) client.connect(broker) client.loop_start() -while True { +while True: humidity, temperature = Adafruit_DHT.read_retry(sensor_type, sensor_pin) client.publish(client_id+"/temperature", temperature) client.publish(client_id+"/humidity", humidity) time.sleep(2) -} |