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.

29 lines
617 B

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