More work on webserver

This commit is contained in:
2026-03-07 19:32:24 +01:00
parent 90d5261670
commit 99668574b3
9 changed files with 119 additions and 80 deletions

View File

@@ -37,12 +37,12 @@ static const ConfigDef configdefs[] = {
{"systemMode", ConfigType::CHAR, 'K'},
{"nightMode", ConfigType::BOOL, false},
{"logLevel", ConfigType::BYTE, uint8_t(4)},
{"adminPassword", ConfigType::STRING, String("obpkp61")},
{"adminPassword", ConfigType::STRING, String(ADMIN_PASS)},
{"useAdminPass", ConfigType::BOOL, true},
{"instDesc1", ConfigType::STRING, String("")},
{"instDesc2", ConfigType::STRING, String("")},
{"apEnable", ConfigType::BOOL, true},
{"apPassword", ConfigType::STRING, String("obpkp61")},
{"apPassword", ConfigType::STRING, String(WIFI_PASS)},
{"apIp", ConfigType::STRING, String("192.168.15.1")},
{"apMask", ConfigType::STRING, String("255.255.255.0")},
{"stopApTime", ConfigType::SHORT, int16_t(0)},
@@ -94,6 +94,7 @@ public:
void loadValue(const char* key);
void save();
void dump();
void clear();
bool hasKey(const char* key);

View File

@@ -47,6 +47,9 @@
#define PREF_NAME "nvs"
// Generic
#define ADMIN_PASS "obpkp61"
// WIFI AP
#define WIFI_CHANNEL 9
#define WIFI_MAX_STA 2