добавляем ответ вебу о модулях на устройстве

This commit is contained in:
IoT Manager
2023-10-05 14:54:22 +02:00
parent 26e8104510
commit 6f863663b2

View File

@@ -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;
}
}