Procházet zdrojové kódy

Sleep before restarting to give respone a chance to transmit

Christopher Mullins před 8 roky
rodič
revize
e8030f6d96
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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](){