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.

24 lines
507 B

  1. #ifndef RestartService_h
  2. #define RestartService_h
  3. #if defined(ESP8266)
  4. #include <ESP8266WiFi.h>
  5. #include <ESPAsyncTCP.h>
  6. #elif defined(ESP_PLATFORM)
  7. #include <AsyncTCP.h>
  8. #include <WiFi.h>
  9. #endif
  10. #include <ESPAsyncWebServer.h>
  11. #include <SecurityManager.h>
  12. #define RESTART_SERVICE_PATH "/rest/restart"
  13. class RestartService {
  14. public:
  15. RestartService(AsyncWebServer* server, SecurityManager* securityManager);
  16. private:
  17. void restart(AsyncWebServerRequest* request);
  18. };
  19. #endif // end RestartService_h