#ifndef ESP8266React_h #define ESP8266React_h #include #ifdef ESP32 #include #include #elif defined(ESP8266) #include #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef PROGMEM_WWW #include #endif class ESP8266React { public: ESP8266React(AsyncWebServer* server); void begin(); void loop(); FS* getFS() { return &ESPFS; } SecurityManager* getSecurityManager() { return &_securitySettingsService; } #if FT_ENABLED(FT_SECURITY) StatefulService* getSecuritySettingsService() { return &_securitySettingsService; } #endif StatefulService* getWiFiSettingsService() { return &_wifiSettingsService; } StatefulService* getAPSettingsService() { return &_apSettingsService; } #if FT_ENABLED(FT_NTP) StatefulService* getNTPSettingsService() { return &_ntpSettingsService; } #endif #if FT_ENABLED(FT_OTA) StatefulService* getOTASettingsService() { return &_otaSettingsService; } #endif #if FT_ENABLED(FT_MQTT) StatefulService* getMqttSettingsService() { return &_mqttSettingsService; } AsyncMqttClient* getMqttClient() { return _mqttSettingsService.getMqttClient(); } #endif void factoryReset() { _factoryResetService.factoryReset(); } private: FeaturesService _featureService; SecuritySettingsService _securitySettingsService; WiFiSettingsService _wifiSettingsService; WiFiScanner _wifiScanner; WiFiStatus _wifiStatus; APSettingsService _apSettingsService; APStatus _apStatus; #if FT_ENABLED(FT_NTP) NTPSettingsService _ntpSettingsService; NTPStatus _ntpStatus; #endif #if FT_ENABLED(FT_OTA) OTASettingsService _otaSettingsService; #endif #if FT_ENABLED(FT_UPLOAD_FIRMWARE) UploadFirmwareService _uploadFirmwareService; #endif #if FT_ENABLED(FT_MQTT) MqttSettingsService _mqttSettingsService; MqttStatus _mqttStatus; #endif #if FT_ENABLED(FT_SECURITY) AuthenticationService _authenticationService; #endif RestartService _restartService; FactoryResetService _factoryResetService; SystemStatus _systemStatus; }; #endif