mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
многие изменения
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -89,6 +89,8 @@ extern String eventBuf;
|
||||
// wifi
|
||||
extern String ssidListJson;
|
||||
|
||||
extern String devListJson;
|
||||
|
||||
// Mqtt
|
||||
extern String mqttServer;
|
||||
extern int mqttPort;
|
||||
|
||||
@@ -41,6 +41,8 @@ String eventBuf = "";
|
||||
// wifi
|
||||
String ssidListJson = "{}";
|
||||
|
||||
String devListJson = "{}";
|
||||
|
||||
// Mqtt
|
||||
String mqttServer = "";
|
||||
int mqttPort = 0;
|
||||
|
||||
@@ -60,6 +60,11 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length)
|
||||
writeFileUint8tByFrames("settings.json", payload, length, headerLenth, 256);
|
||||
settingsFlashJson = readFile(F("settings.json"), 4096);
|
||||
}
|
||||
// list ===================================================================
|
||||
if (headerStr == "/list") {
|
||||
standWebSocket.sendTXT(num, devListJson);
|
||||
sendFileToWs("/settings.json", num, 1024);
|
||||
}
|
||||
|
||||
} break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user