небольшие изменения

This commit is contained in:
Dmitry Borisenko
2022-03-01 01:43:30 +01:00
parent 7ec426114f
commit 080de83be7
2 changed files with 3 additions and 2 deletions

View File

@@ -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, []() {

View File

@@ -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================================================================
//**отправка**//