mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-12 09:24:45 +05:00
auto restart after changing some settings
This commit is contained in:
1 parent
e9bf4c4bd5
commit
eedbd7b80a
4 files changed
+111
-19
No files matched your search
+2
-5
@@ -323,11 +323,8 @@ protected:
|
||||
}
|
||||
|
||||
if (!doc["restart"].isNull() && doc["restart"].is<bool>() && doc["restart"].as<bool>()) {
|
||||
DEBUG("Received restart message...");
|
||||
eeSettings.updateNow();
|
||||
DEBUG("Restart...");
|
||||
|
||||
ESP.restart();
|
||||
vars.parameters.restartAfterTime = 5000;
|
||||
vars.parameters.restartSignalTime = millis();
|
||||
}
|
||||
|
||||
if (flag) {
|
||||
|
||||
Reference in new issue
Block a user