mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 22:52:19 +03:00
выгрузка длинного конфига
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
#include "WebSocket.h"
|
||||
|
||||
#include "Class/NotAsync.h"
|
||||
#include "Global.h"
|
||||
|
||||
void wsInit() {
|
||||
myNotAsyncActions->add(
|
||||
do_webSocketSendSetup, [&](void*) {
|
||||
wsSendSetup();
|
||||
},
|
||||
nullptr);
|
||||
}
|
||||
|
||||
void wsSendSetup() {
|
||||
SerialPrint("I", F("WS"), F("start send config"));
|
||||
File file = seekFile("/setup.json");
|
||||
@@ -20,6 +29,8 @@ void wsSendSetup() {
|
||||
|
||||
// if (ws.enabled()) Serial.println("on");
|
||||
|
||||
delay(100);
|
||||
|
||||
Serial.println(doc.as<String>());
|
||||
|
||||
} while (file.findUntil(",", "]"));
|
||||
|
||||
Reference in New Issue
Block a user