mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
версия 454 - исправлены баги, добавлена обратная связь на ota
This commit is contained in:
@@ -219,6 +219,7 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length)
|
||||
//----------------------------------------------------------------------//
|
||||
if (headerStr == "/profile|") {
|
||||
// для версии 451 отдаем myProfile.json
|
||||
sendFileToWsByFrames("/ota.json", "otaupd", "", num, WEB_SOCKETS_FRAME_SIZE);
|
||||
if (FileFS.exists("/myProfile.json")) {
|
||||
sendFileToWsByFrames("/myProfile.json", "prfile", "", num, WEB_SOCKETS_FRAME_SIZE);
|
||||
// для версии 452 и более отдаем flashProfile.json
|
||||
|
||||
Reference in New Issue
Block a user