добавил новые json утилиты

This commit is contained in:
Dmitry Borisenko
2021-12-24 22:49:06 +01:00
parent dbe11162e5
commit 875f5009c2
10 changed files with 79 additions and 59 deletions

View File

@@ -1,7 +1,5 @@
#include "AsyncWebServer.h"
#ifdef ASYNC_WEB_SERVER
AsyncWebSocket ws("/ws");
AsyncEventSource events("/events");
void asyncWebServerInit() {
String login = jsonReadStr(settingsFlashJson, "weblogin");
@@ -70,6 +68,12 @@ void asyncWebServerInit() {
SerialPrint("i", F("WEB"), F("WebServer Init"));
}
#endif
#ifdef ASYNC_WEB_SOCKETS
AsyncWebSocket ws("/ws");
AsyncEventSource events("/events");
void asyncWebSocketsInit() {
ws.onEvent(onWsEvent);