Removed JSON from ap settings and service -> preparing to remake servo

This commit is contained in:
Niklas Jensen
2026-01-24 14:04:07 +01:00
committed by nikguin04
parent 6e478460f5
commit 7f4a158e24
3 changed files with 28 additions and 140 deletions
-8
View File
@@ -1,14 +1,11 @@
#pragma once
#include <template/stateful_service.h>
#include <template/stateful_endpoint.h>
#include <template/stateful_proto_endpoint.h>
#include <template/stateful_persistence.h>
#include <settings/ap_settings.h>
#include <utils/timing.h>
#include <WiFi.h>
#include "esp_timer.h"
#include <string>
class APService : public StatefulService<APSettings> {
public:
@@ -19,18 +16,13 @@ class APService : public StatefulService<APSettings> {
void loop();
void recoveryMode();
esp_err_t getStatus(httpd_req_t *request);
esp_err_t getStatusProto(httpd_req_t *request);
void status(JsonObject &root);
void statusProto(api_APStatus &proto);
APNetworkStatus getAPNetworkStatus();
StatefulHttpEndpoint<APSettings> endpoint;
StatefulProtoEndpoint<APSettings, api_APSettings> protoEndpoint;
private:
FSPersistence<APSettings> _persistence;
DNSServer *_dnsServer;
volatile unsigned long _lastManaged;