Merge pull request #326 from IoTManagerProject/ver4dev

добавляем ответ вебу о модулях на устройстве
This commit is contained in:
IoT Manager
2023-10-05 14:55:05 +02:00
committed by GitHub

View File

@@ -230,7 +230,12 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload,
// WEB_SOCKETS_FRAME_SIZE); // WEB_SOCKETS_FRAME_SIZE);
} }
if (headerStr == "/test|") { //----------------------------------------------------------------------//
// Страница веб интерфейса update
//----------------------------------------------------------------------//
if (headerStr == "/profile|") {
sendFileToWsByFrames("/myProfile.json", "prfile", "", num,
WEB_SOCKETS_FRAME_SIZE);
} }
//----------------------------------------------------------------------// //----------------------------------------------------------------------//
@@ -326,7 +331,9 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload,
Serial.printf("[%u] pong: %u\n", num, length); Serial.printf("[%u] pong: %u\n", num, length);
} break; } break;
default: { Serial.printf("[%u] not recognized: %u\n", num, length); } break; default: {
Serial.printf("[%u] not recognized: %u\n", num, length);
} break;
} }
} }