теперь можно выбирать из двух: стандартный или асинхронный веб сервер

This commit is contained in:
Dmitry Borisenko
2021-12-23 22:42:19 +01:00
parent 940a5a7ee9
commit 9d0841df99
9 changed files with 241 additions and 15 deletions

10
include/AsyncWebServer.h Normal file
View File

@@ -0,0 +1,10 @@
#pragma once
#include "Global.h"
#ifdef ASYNC_WEB_SERVER
extern AsyncWebSocket ws;
extern AsyncEventSource events;
void asyncWebServerInit();
void asyncWebSocketsInit();
void onWsEvent(AsyncWebSocket *server, AsyncWebSocketClient *client, AwsEventType type, void *arg, uint8_t *data, size_t len);
#endif