mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
добавил новые json утилиты
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user