исправил проблему обновления по воздуху

This commit is contained in:
Dmitry Borisenko
2022-09-01 19:36:51 +02:00
parent 9ac0ab0b5a
commit e8526f0e1a
5 changed files with 15 additions and 7 deletions

View File

@@ -180,11 +180,17 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length)
if (headerStr == "/reboot|") {
ESP.restart();
}
//команда очистки всех логов esp
if (headerStr == "/clean|") {
cleanLogs();
}
//команда обновления прошивки esp
if (headerStr == "/update|") {
upgrade_firmware(3);
}
//Прием команд control c dashboard
if (headerStr == "/control|") {
String msg;