Esp8266webserver

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...

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

nobody?

He have to send a lot of data...
When disconnected with client, the progam gets stuck, I think, about 15 - 25 minutes.

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

Anyone a suggestion?

You might try esp8266.com

First, WELCOME !

one way we might be able to help is to look at your code.

to post code, please go to the home page of any forum and read HOW TO USE THIS FORUM, item #7 shows how to post code.

One way is to put all the code in setup() and in loop, just re-set.
I think that will present other problems.

But it does sound like you have some handshaking issue. or lack of it.
Can you send the data without needing an ack from the receiver ?