First steps to config / preferences

This commit is contained in:
2026-01-25 09:54:26 +01:00
parent b5b7bddb74
commit af98a52fd3
5 changed files with 108 additions and 20 deletions

9
include/config.h Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
class Config {
private:
Preferences *prefs;
public:
Config();
bool loadConfig();
};

View File

@@ -20,6 +20,8 @@
#define FIRMWARE_TYPE STRINGIFY(PIO_ENV_BUILD)
#define IDF_VERSION STRINGIFY(ESP_IDF_VERSION_MAJOR) "." STRINGIFY(ESP_IDF_VERSION_MINOR) "." STRINGIFY(ESP_IDF_VERSION_PATCH)
#define PREF_NAME "nvs"
// WIFI AP
#define WIFI_CHANNEL 9
#define WIFI_MAX_STA 2