mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-31 04:19:15 +03:00
обновил веб интерфейс
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -214,6 +214,11 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length)
|
|||||||
|
|
||||||
if (payloadStr.startsWith("/config")) {
|
if (payloadStr.startsWith("/config")) {
|
||||||
//если прилетел url страницы /config то отправим widgets.json и config.json
|
//если прилетел url страницы /config то отправим widgets.json и config.json
|
||||||
|
|
||||||
|
// не нравится мне это, нужно что бы класс строил очередь и отправлял вначале первый файл потом второй
|
||||||
|
// очередь задавалась бы так: /widgets.json,/config.json,
|
||||||
|
// хорошая идея на завтра)
|
||||||
|
|
||||||
if (sendWigdetsJson) sendWigdetsJson->sendFile("/widgets.json", num);
|
if (sendWigdetsJson) sendWigdetsJson->sendFile("/widgets.json", num);
|
||||||
if (sendConfigJson) sendConfigJson->sendFile("/config.json", num);
|
if (sendConfigJson) sendConfigJson->sendFile("/config.json", num);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user