mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
небольшие изменения
This commit is contained in:
@@ -22,7 +22,8 @@ void standWebServerInit() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
HTTP.on("/params.json", HTTP_GET, []() {
|
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, []() {
|
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===================================================================
|
// page dashboard===================================================================
|
||||||
//**отправка**//
|
//**отправка**//
|
||||||
if (headerStr == "/|") {
|
if (headerStr == "/|") {
|
||||||
sendFileToWs("/layout.json", num, 1024);
|
|
||||||
String json = getParamsJson();
|
String json = getParamsJson();
|
||||||
standWebSocket.sendTXT(num, json);
|
standWebSocket.sendTXT(num, json);
|
||||||
|
sendFileToWs("/layout.json", num, 1024);
|
||||||
}
|
}
|
||||||
// page configutation================================================================
|
// page configutation================================================================
|
||||||
//**отправка**//
|
//**отправка**//
|
||||||
|
|||||||
Reference in New Issue
Block a user