откат изменений из-за потери оперативной памяти

This commit is contained in:
Dmitry Borisenko
2022-01-20 13:07:37 +01:00
parent 8229e0b116
commit c4a3dec67c
14 changed files with 18 additions and 301 deletions

View File

@@ -219,8 +219,8 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length)
// очередь задавалась бы так: /widgets.json,/config.json,
// хорошая идея на завтра)
if (sendJsonFiles) sendJsonFiles->addFileToQueue("/widgets.json", num);
if (sendJsonFiles) sendJsonFiles->addFileToQueue("/config.json", num);
if (sendWigdetsJson) sendWigdetsJson->sendFile("/widgets.json", num);
if (sendConfigJson) sendConfigJson->sendFile("/config.json", num);
}
if (payloadStr.startsWith("/gifnoc.json")) { //если прилетел измененный пакет с меткой /gifnoc (config наоборот) то перепишем файл, пока переписываем целеком