Fork of the excellent esp8266-react - https://github.com/rjwats/esp8266-react
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.2 KiB

  1. #ifndef ESP8266React_h
  2. #define ESP8266React_h
  3. #include <Arduino.h>
  4. #if defined(ESP8266)
  5. #include <ESP8266WiFi.h>
  6. #include <ESPAsyncTCP.h>
  7. #elif defined(ESP_PLATFORM)
  8. #include <WiFi.h>
  9. #include <AsyncTCP.h>
  10. #include <SPIFFS.h>
  11. #endif
  12. #include <FS.h>
  13. #include <SecuritySettingsService.h>
  14. #include <WiFiSettingsService.h>
  15. #include <APSettingsService.h>
  16. #include <NTPSettingsService.h>
  17. #include <OTASettingsService.h>
  18. #include <AuthenticationService.h>
  19. #include <WiFiScanner.h>
  20. #include <WiFiStatus.h>
  21. #include <NTPStatus.h>
  22. #include <APStatus.h>
  23. #include <SystemStatus.h>
  24. class ESP8266React {
  25. public:
  26. ESP8266React(AsyncWebServer* server, FS* fs);
  27. void begin();
  28. void loop();
  29. SecurityManager* getSecurityManager(){
  30. return &_securitySettingsService;
  31. }
  32. private:
  33. SecuritySettingsService _securitySettingsService;
  34. WiFiSettingsService _wifiSettingsService;
  35. APSettingsService _apSettingsService;
  36. NTPSettingsService _ntpSettingsService;
  37. OTASettingsService _otaSettingsService;
  38. AuthenticationService _authenticationService;
  39. WiFiScanner _wifiScanner;
  40. WiFiStatus _wifiStatus;
  41. NTPStatus _ntpStatus;
  42. APStatus _apStatus;
  43. SystemStatus _systemStatus;
  44. };
  45. #endif