Pārlūkot izejas kodu

Sleep before restarting to give respone a chance to transmit

Christopher Mullins 8 gadi atpakaļ
vecāks
revīzija
e8030f6d96
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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](){