mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
финальная версия с двумя серверами esp8266 и esp32
This commit is contained in:
@@ -23,9 +23,14 @@
|
||||
#endif
|
||||
|
||||
#ifdef STANDARD_WEB_SERVER
|
||||
#ifdef ESP8266
|
||||
#include <ESP8266WebServer.h>
|
||||
#include <ESP8266HTTPUpdateServer.h>
|
||||
#endif
|
||||
#ifdef ESP32
|
||||
#include <WebServer.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <FS.h>
|
||||
|
||||
@@ -41,9 +46,14 @@ extern AsyncWebServer server;
|
||||
#endif
|
||||
|
||||
#ifdef STANDARD_WEB_SERVER
|
||||
#ifdef ESP8266
|
||||
extern ESP8266WebServer HTTP;
|
||||
extern ESP8266HTTPUpdateServer httpUpdater;
|
||||
#endif
|
||||
#ifdef ESP32
|
||||
extern WebServer HTTP;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//глобальные переменные
|
||||
extern String settingsFlashJson;
|
||||
|
||||
Reference in New Issue
Block a user