mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
23 lines
417 B
C++
23 lines
417 B
C++
#ifndef RestartService_h
|
|
#define RestartService_h
|
|
|
|
#include <WiFi.h>
|
|
#include <AsyncTCP.h>
|
|
#include <ESPAsyncWebServer.h>
|
|
|
|
#include "SecurityManager.h"
|
|
|
|
#define RESTART_SERVICE_PATH "/rest/restart"
|
|
|
|
class RestartService {
|
|
public:
|
|
RestartService(AsyncWebServer * server, SecurityManager * securityManager);
|
|
|
|
static void restartNow();
|
|
|
|
private:
|
|
void restart(AsyncWebServerRequest * request);
|
|
};
|
|
|
|
#endif
|