-->
Page 3 of 16

Re: Simple wifi web server - hygrometer with DHT22 sensor

PostPosted: Sun Jan 25, 2015 1:36 pm
by jankop
Because it is prescribed for single-wire bus resistor 1-5Kohm. Internal pullup resistor is probably much greater.

Re: Simple wifi web server - hygrometer with DHT22 sensor

PostPosted: Sun Jan 25, 2015 1:46 pm
by jankop
amera64 wrote:I have this code working but it doesn't seem to be reliable. I can get about 10 hits on the server and then it locks up or reboots the ESP8266. Anyone have any ideas why this would happen? I also noticed with every server request, the heap goes down and never recovers. I am using the latest version of nodeMCU.


With NodeMCU 0.9.5 build 20150124 I have not problem and server is very stabil without random restarts.. Memory heap is normally at 17kB. I think the program is quite usable.

Re: Simple wifi web server - hygrometer with DHT22 sensor

PostPosted: Mon Jan 26, 2015 4:19 am
by kartman
Jankop, thanks for a great demo. I too, have hard the restarts. What sort of response time should I expect with this? I'm using a wpa2 encrypted connection and it takes seconds for response. Or is this a symptom of dodgy power supply?

Re: Simple wifi web server - hygrometer with DHT22 sensor

PostPosted: Mon Jan 26, 2015 5:00 am
by jankop
I also use WPA2 and I connected over WAN too. The response is almost immediate, delay is seen in moments of reconnection to AP. ESP8266 is blocked tantalum and ceramic capacitors and my power is 12V/2A connected to Power Supply Module 3.3V/ 5V for breadboard with maximum current 700mA. The esp8266 works all day without rebooting.