mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
небольшие изменения
This commit is contained in:
@@ -22,7 +22,8 @@ void standWebServerInit() {
|
||||
});
|
||||
|
||||
HTTP.on("/params.json", HTTP_GET, []() {
|
||||
// HTTP.send(200, "application/json", paramsHeapJson);
|
||||
String json = getParamsJson();
|
||||
HTTP.send(200, "application/json", json);
|
||||
});
|
||||
|
||||
HTTP.on("/errors.json", HTTP_GET, []() {
|
||||
|
||||
@@ -50,9 +50,9 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length)
|
||||
// page dashboard===================================================================
|
||||
//**отправка**//
|
||||
if (headerStr == "/|") {
|
||||
sendFileToWs("/layout.json", num, 1024);
|
||||
String json = getParamsJson();
|
||||
standWebSocket.sendTXT(num, json);
|
||||
sendFileToWs("/layout.json", num, 1024);
|
||||
}
|
||||
// page configutation================================================================
|
||||
//**отправка**//
|
||||
|
||||
Reference in New Issue
Block a user