We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e55fb50 + 4e97638 commit acd6784Copy full SHA for acd6784
1 file changed
PersWiFiManager.cpp
@@ -112,7 +112,11 @@ void PersWiFiManager::setupWiFiHandlers() {
112
_server->on("/wifi/rst", [&]() {
113
_server->send(200, "text/html", "Rebooting...");
114
delay(100);
115
- ESP.restart();
+ //ESP.restart();
116
+ // Adding Safer Restart method
117
+ ESP.wdtDisable();
118
+ ESP.reset();
119
+ delay(2000);
120
});
121
122
#ifdef WIFI_HTM_PROGMEM
0 commit comments