Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:iot:examples:dht [2021/03/05 10:03] heiko.pikneren:iot:examples:dht [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== DHT  example======+====== Temp/Hum example======
  
 DHT module must be connected to controller module or with sensor module.  DHT module must be connected to controller module or with sensor module. 
Line 13: Line 13:
 <code>lib_deps = ITTIoT, DHT sensor library, Adafruit Unified Sensor</code> <code>lib_deps = ITTIoT, DHT sensor library, Adafruit Unified Sensor</code>
  
-The example code above will print out current Tempeture and Humidity in the room+The example code above will print out current Tempeture and Humidity in the room.  
 + 
 +<fc #ff0000>After programming, if NAN appears instead of readings, the USB cable should be disconnected and reconnected!</fc>
 <code c> <code c>
 // Includes global variables and librarys that the DHT uses // Includes global variables and librarys that the DHT uses
Line 40: Line 42:
   sendDataFlag=true;   sendDataFlag=true;
 } }
 +
 +void iot_received(String topic, String msg) {}
  
 // Function started after the connection to the server is established. // Function started after the connection to the server is established.
en/iot/examples/dht.1614938610.txt.gz · Last modified: 2021/03/05 10:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0