выгрузка длинного конфига

This commit is contained in:
Dmitry Borisenko
2021-12-16 01:56:14 +01:00
parent 618b2b5275
commit 959332b65d
54 changed files with 35 additions and 9831 deletions

View File

@@ -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(",", "]"));