First steps to config / preferences
This commit is contained in:
9
include/config.h
Normal file
9
include/config.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
class Config {
|
||||
private:
|
||||
Preferences *prefs;
|
||||
public:
|
||||
Config();
|
||||
bool loadConfig();
|
||||
};
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user