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