diff --git a/src/StandWebServer.cpp b/src/StandWebServer.cpp index 58715c8c..48192ec4 100644 --- a/src/StandWebServer.cpp +++ b/src/StandWebServer.cpp @@ -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, []() { diff --git a/src/WsServer.cpp b/src/WsServer.cpp index fd04a2bc..818c15c0 100644 --- a/src/WsServer.cpp +++ b/src/WsServer.cpp @@ -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================================================================ //**отправка**//