More work on webserver
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -47,6 +47,9 @@
|
||||
|
||||
#define PREF_NAME "nvs"
|
||||
|
||||
// Generic
|
||||
#define ADMIN_PASS "obpkp61"
|
||||
|
||||
// WIFI AP
|
||||
#define WIFI_CHANNEL 9
|
||||
#define WIFI_MAX_STA 2
|
||||
|
||||
Reference in New Issue
Block a user