REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
persistent.cpp
Go to the documentation of this file.
1#include "nvmconfig/persistent.h"
2
3#include <ArduinoJson.h>
4
5
6#include "utils/logging.h"
7#include "utils/streaming_json.h" // only for debugging
8
9#include <net/auth.h>
10
11// TDOO maybe to core with StreamUtils::EepromStream abstraction?
12void nvmconfig::PersistentSettingsWriter::read_from_eeprom() {
13 auto &gatekeeper = net::auth::Gatekeeper::get();
14 gatekeeper.enable_auth = false;
15 gatekeeper.enable_users = false;
16}
17
18size_t nvmconfig::PersistentSettingsWriter::write_to_eeprom() {
19 throw std::runtime_error("not impl");
20 return 0;
21}