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
601 B

  1. #ifndef SystemStatus_h
  2. #define SystemStatus_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 <SecurityManager.h>
  14. #include <ESPFS.h>
  15. #define MAX_ESP_STATUS_SIZE 1024
  16. #define SYSTEM_STATUS_SERVICE_PATH "/rest/systemStatus"
  17. class SystemStatus {
  18. public:
  19. SystemStatus(AsyncWebServer* server, SecurityManager* securityManager);
  20. private:
  21. void systemStatus(AsyncWebServerRequest* request);
  22. };
  23. #endif // end SystemStatus_h