New features and refactoring

This commit is contained in:
Yurii
2022-11-17 03:24:39 +03:00
parent 0b887a8400
commit 5be63c4f85
10 changed files with 212 additions and 142 deletions

View File

@@ -218,6 +218,10 @@ protected:
}
if (!doc["restart"].isNull() && doc["restart"].is<bool>() && doc["restart"]) {
DEBUG("Received restart message...");
Scheduler.delay(10000);
DEBUG("Restart...");
eeSettings.updateNow();
ESP.restart();
}