Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Hans kr
#80137 Hello to all! I'm new here. I'm Hans from the Netherlands. I read some interesting topics here.

Now I have a problem myself.


I have a wemos d1 mini, esp8266. It's running a "simple" webserver.

Only showing some datalogging graphics, of 5 temperature sensors and power (kW) of my woodstove.


When opening my "homepage", it shows me some data, and some grafics. The data send time (I can see on my homepage) is in my house, with wifi 1300 ms, and somewhere else with 4G on my phone about 3000 - 5000 ms.


Now the problem comes: when aborting page loading, or wifi out of range when pageloading, the handleroot won't stop. And the loop is not been able to do his job! Somethimes it takes 15min to 25min to get back to the loop. All the time (I think) he is trying to send his data to the client (who is disconnected for some reason...

He have to send a lot of data... 

I think, there must be some "while client available" in the handleroot. But esp8266webserver dont have this function.

Interrupt does work. But my temperature datalogging every 2 minutes, doesn't. 
Does anybody know how to solve this problem?