From 080de83be733d51097f12293841067bb14220ca5 Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Tue, 1 Mar 2022 01:43:30 +0100 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/StandWebServer.cpp | 3 ++- src/WsServer.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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================================================================ //**отправка**//