This is an example of server using NodeMCU(ESP8266) using library: rDHT v2.00, rESP8266 v1.00, rESP8266Wifi v1.30, rOneWire v1.00, rRandomAccessFile v1.80.
For NodeMCU(ESP8266), you need to change DHT library line 122 in dht.cpp
https://www.b4x.com/android/forum/threads/esp8266.65680/page-2#post-428406
For Arduino, DHT library, remain original
Schematic is this:
Server read sensor and send data using B4RSerializator only when a client is connected. This monitor my home heating system, radiators, indoor temperature and humidity , outdoor temperature and door open/close.
Partial server code here:
https://www.b4x.com/android/forum/threads/onewire-dallas-1-wire-protocol.66672/#post-549901
And client build with B4A.
Local weather is from www.wunderground.com. You can register and using API can download weather in json format for free 500 time/day.
For NodeMCU(ESP8266), you need to change DHT library line 122 in dht.cpp
https://www.b4x.com/android/forum/threads/esp8266.65680/page-2#post-428406
For Arduino, DHT library, remain original
Schematic is this:
Server read sensor and send data using B4RSerializator only when a client is connected. This monitor my home heating system, radiators, indoor temperature and humidity , outdoor temperature and door open/close.
Partial server code here:
https://www.b4x.com/android/forum/threads/onewire-dallas-1-wire-protocol.66672/#post-549901
And client build with B4A.
Local weather is from www.wunderground.com. You can register and using API can download weather in json format for free 500 time/day.
Last edited: