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.

31 lines
682 B

  1. #ifndef APStatus_h
  2. #define APStatus_h
  3. #ifdef ESP32
  4. #include <WiFi.h>
  5. #include <AsyncTCP.h>
  6. #elif defined(ESP8266)
  7. #include <ESP8266WiFi.h>
  8. #include <ESPAsyncTCP.h>
  9. #endif
  10. #include <ArduinoJson.h>
  11. #include <AsyncJson.h>
  12. #include <ESPAsyncWebServer.h>
  13. #include <IPAddress.h>
  14. #include <SecurityManager.h>
  15. #include <APSettingsService.h>
  16. #define MAX_AP_STATUS_SIZE 1024
  17. #define AP_STATUS_SERVICE_PATH "/rest/apStatus"
  18. class APStatus {
  19. public:
  20. APStatus(AsyncWebServer* server, SecurityManager* securityManager, APSettingsService* apSettingsService);
  21. private:
  22. APSettingsService* _apSettingsService;
  23. void apStatus(AsyncWebServerRequest* request);
  24. };
  25. #endif // end APStatus_h