Protobuf persistance + Readded persistance for ap service

This commit is contained in:
Niklas Jensen
2026-01-24 14:25:49 +01:00
committed by nikguin04
parent 7f4a158e24
commit 476c49f474
3 changed files with 144 additions and 2 deletions
+4
View File
@@ -2,11 +2,14 @@
#include <template/stateful_service.h>
#include <template/stateful_proto_endpoint.h>
#include <template/stateful_persistence_pb.h>
#include <settings/ap_settings.h>
#include <utils/timing.h>
#include <WiFi.h>
#include "esp_timer.h"
#define AP_SETTINGS_FILE "/config/apSettings.pb"
class APService : public StatefulService<APSettings> {
public:
APService();
@@ -23,6 +26,7 @@ class APService : public StatefulService<APSettings> {
StatefulProtoEndpoint<APSettings, api_APSettings> protoEndpoint;
private:
FSPersistencePB<APSettings> _persistence;
DNSServer *_dnsServer;
volatile unsigned long _lastManaged;