Explorar o código

Sleep before restarting to give respone a chance to transmit

Christopher Mullins %!s(int64=8) %!d(string=hai) anos
pai
achega
e8030f6d96
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      lib/WebServer/MiLightHttpServer.cpp

+ 2 - 0
lib/WebServer/MiLightHttpServer.cpp

@@ -48,6 +48,8 @@ void MiLightHttpServer::begin() {
         );
       }
 
+      delay(1000);
+
       ESP.restart();
     },
     [this](){