diff options
author | Joe Robinson <joe@lc8n.com> | 2019-02-17 21:06:30 +0000 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2019-02-17 21:06:30 +0000 |
commit | 62df855847c12466f3094bd12b284939b5274d89 (patch) | |
tree | b468c63e3aa61925f4a39708fc618d8124032ef6 | |
parent | d162224d4f6f2ea97935f73a635b13db47c4c5a8 (diff) |
Add some debug output
-rw-r--r-- | fruitfly.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fruitfly.py b/fruitfly.py index 53d20e2..ea58818 100644 --- a/fruitfly.py +++ b/fruitfly.py @@ -14,11 +14,13 @@ client = paho.Client(client_id) print("connecting to broker " + broker) client.connect(broker) +print("connected") client.loop_start() while True: humidity, temperature = Adafruit_DHT.read_retry(sensor_type, sensor_pin) - + print(client_id+"/temperature: "+ temperature)) + print(client_id+"/humidity: "+ humidity) client.publish(client_id+"/temperature", temperature) client.publish(client_id+"/humidity", humidity) |