ESPWebServer
ESPWebServer copied to clipboard
WebServer and DeepSleep
I want to have WebServer for maybe 10 seconds or until I have clients sending requests and than I want DeepSleep for maybe 20 seconds. I have tried this but it's not working. I am sending only loop function.
void loop(void){ server.handleClient(); ESP.deepSleep(20e6); // 20e6 is 20 microseconds }