This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:iot:examples:dht [2021/03/05 10:03] – heiko.pikner | en:iot:examples:dht [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
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: | ||
< | < | ||
- | 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 # | ||
<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. |