1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00

add testServer

This commit is contained in:
andreas
2021-10-17 18:17:18 +02:00
parent 271e461be5
commit 8f03ad1373
5 changed files with 126 additions and 7 deletions

View File

@@ -65,6 +65,7 @@ class GwConfigHandler{
bool loadConfig();
bool saveConfig();
bool updateValue(const char *name, const char * value);
bool updateValue(String name, String value);
bool reset(bool save);
String toString() const;
String toJson() const;
@@ -74,14 +75,14 @@ class GwConfigHandler{
GwConfigInterface * getConfigItem(const String name, bool dummy=false) const;
private:
GwConfigItem* configs[5]={
new GwConfigItem(sendUsb,true),
new GwConfigItem (receiveUsb,false),
new GwConfigItem (wifiClient,false),
new GwConfigItem(sendUsb,"true"),
new GwConfigItem (receiveUsb,"false"),
new GwConfigItem (wifiClient,"false"),
new GwConfigItem (wifiSSID,""),
new GwConfigItem (wifiPass,"")
};
int getNumConfig() const{
return sizeof(configs)/sizeof(GwConfigItem*);
return 5;
}
};
#endif