⚡ Removes PsychicHttp dependency
This commit is contained in:
@@ -1,22 +1,23 @@
|
||||
#include "system_service.h"
|
||||
#include <communication/native_server.h>
|
||||
|
||||
namespace system_service {
|
||||
|
||||
static const char *TAG = "SystemService";
|
||||
|
||||
esp_err_t handleReset(PsychicRequest *request) {
|
||||
esp_err_t handleReset(httpd_req_t *request) {
|
||||
reset();
|
||||
return request->reply(200);
|
||||
return NativeServer::sendOk(request);
|
||||
}
|
||||
|
||||
esp_err_t handleRestart(PsychicRequest *request) {
|
||||
esp_err_t handleRestart(httpd_req_t *request) {
|
||||
restart();
|
||||
return request->reply(200);
|
||||
return NativeServer::sendOk(request);
|
||||
}
|
||||
|
||||
esp_err_t handleSleep(PsychicRequest *request) {
|
||||
esp_err_t handleSleep(httpd_req_t *request) {
|
||||
sleep();
|
||||
return request->reply(200);
|
||||
return NativeServer::sendOk(request);
|
||||
}
|
||||
|
||||
void reset() {
|
||||
@@ -141,4 +142,4 @@ const char *resetReason(esp_reset_reason_t reason) {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace system_service
|
||||
} // namespace system_service
|
||||
|
||||
Reference in New Issue
Block a user