-->
Page 1 of 1

ESP8266WebServer

PostPosted: Tue Jan 11, 2022 8:23 pm
by Krupa
Hello!!

I am using the ESP8266WebServer library with the sketch compiled for NodeMCU ESP8266. I understand that the server created by the library requires the following code to be active:

void loop(void) {
server.handleClient();
}

My problem is that I already have one loop in the code that requires a delay of 2 seconds in execution, and if I place the server.handleClient() function inside this loop, it makes the Webserver totally unresponsive. Is there another method I could keep the server alive and have my original loop active?

Thanks a lot for any help!!
Joe

Re: ESP8266WebServer

PostPosted: Fri Jan 14, 2022 6:14 am
by rpiloverbd
Hi there. I'm not sure but you may get some clue regarding this issue from here: https://www.theengineeringprojects.com/ ... p8266.html