Добавлен вызов режима обновления модуля esp из android приложения

This commit is contained in:
gunner47
2019-08-28 03:04:19 +03:00
parent 53c51558d0
commit 00696c2f4e
4 changed files with 25 additions and 6 deletions

View File

@@ -160,6 +160,18 @@ void parseUDP()
eepromTimer = millis();
}
else if (inputBuffer.startsWith("OTA"))
{
#ifdef OTA
otaManager.RequestOtaUpdate();
delay(50);
otaManager.RequestOtaUpdate();
currentMode = 16; // принудительное включение режима "Матрица" для индикации перехода в режим обновления по воздуху
FastLED.clear();
delay(1);
#endif
}
else
{
inputBuffer = "";