Removes PsychicHttp dependency

This commit is contained in:
Rune Harlyk
2026-01-22 22:20:13 +01:00
committed by Rune Harlyk
parent 0b8e060063
commit 64199ac1a3
22 changed files with 256 additions and 413 deletions
+8 -7
View File
@@ -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