mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
добавляем ответ вебу о модулях на устройстве
This commit is contained in:
@@ -230,7 +230,12 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload,
|
||||
// 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);
|
||||
} break;
|
||||
|
||||
default: { Serial.printf("[%u] not recognized: %u\n", num, length); } break;
|
||||
default: {
|
||||
Serial.printf("[%u] not recognized: %u\n", num, length);
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user