WordClockESP/lib/framework/ESP8266React.h

63 lines
1.3 KiB
C
Raw Normal View History

2019-07-14 21:13:26 +00:00
#ifndef ESP8266React_h
#define ESP8266React_h
#include <Arduino.h>
#ifdef ESP32
#include <AsyncTCP.h>
#include <SPIFFS.h>
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
#include <FS.h>
2019-07-14 21:13:26 +00:00
#endif
#include <APSettingsService.h>
#include <APStatus.h>
#include <AuthenticationService.h>
2019-07-14 21:13:26 +00:00
#include <NTPSettingsService.h>
#include <NTPStatus.h>
2019-07-14 21:13:26 +00:00
#include <OTASettingsService.h>
#include <RestartService.h>
#include <SecuritySettingsService.h>
#include <SystemStatus.h>
2019-07-14 21:13:26 +00:00
#include <WiFiScanner.h>
#include <WiFiSettingsService.h>
2019-07-14 21:13:26 +00:00
#include <WiFiStatus.h>
#ifdef PROGMEM_WWW
#include <WWWData.h>
#endif
2019-07-14 21:13:26 +00:00
class ESP8266React {
public:
ESP8266React(AsyncWebServer* server, FS* fs);
void begin();
void loop();
SecurityManager* getSecurityManager() {
return &_securitySettingsService;
}
private:
SecuritySettingsService _securitySettingsService;
WiFiSettingsService _wifiSettingsService;
APSettingsService _apSettingsService;
NTPSettingsService _ntpSettingsService;
OTASettingsService _otaSettingsService;
RestartService _restartService;
AuthenticationService _authenticationService;
WiFiScanner _wifiScanner;
WiFiStatus _wifiStatus;
NTPStatus _ntpStatus;
APStatus _apStatus;
SystemStatus _systemStatus;
2019-07-14 21:13:26 +00:00
};
#endif