Updated class due to changes to the Dictionary utility class

This commit is contained in:
Anatole SCHRAMM 2019-04-03 17:12:25 +02:00
parent f63e7bf835
commit e7e820ab2a

View File

@ -22,7 +22,7 @@ ConnectivityManager::ConnectivityManager(SDCardManager *sdCardManager) : _error(
} }
else else
{ {
if(!softAP((*cfgDictionary)("SSID").getValue().stringValue(), strcmp((*cfgDictionary)("PASSWORD").getValue().stringValue(),"") == 0 ? NULL:(*cfgDictionary)("PASSWORD").getValue().stringValue(), (*cfgDictionary)("CHANNEL").getValue().intValue(), (*cfgDictionary)("SSID_HIDDEN").getValue().booleanValue(), (*cfgDictionary)("AP_MAX_CONNECTION").getValue().intValue()))_error &= AP_SETUP_ERR; if(!softAP((*cfgDictionary)("SSID")->stringValue(), strcmp((*cfgDictionary)("PASSWORD")->stringValue(),"") == 0 ? NULL:(*cfgDictionary)("PASSWORD")->stringValue(), (*cfgDictionary)("CHANNEL")->intValue(), (*cfgDictionary)("SSID_HIDDEN")->booleanValue(), (*cfgDictionary)("AP_MAX_CONNECTION")->intValue()))_error &= AP_SETUP_ERR;
delete cfgDictionary; delete cfgDictionary;
} }
@ -30,7 +30,7 @@ ConnectivityManager::ConnectivityManager(SDCardManager *sdCardManager) : _error(
cfgDictionary = (CFGDictionary<CFGParameterValue> *) cfgFileParserSTA.parseFile(); cfgDictionary = (CFGDictionary<CFGParameterValue> *) cfgFileParserSTA.parseFile();
if(cfgDictionary != NULL) if(cfgDictionary != NULL)
{ {
if(!begin((*cfgDictionary)("SSID").getValue().stringValue(), (*cfgDictionary)("PASSWORD").getValue().stringValue()))_error &= AP_SETUP_ERR; if(!begin((*cfgDictionary)("SSID")->stringValue(), (*cfgDictionary)("PASSWORD")->stringValue()))_error &= AP_SETUP_ERR;
delete cfgDictionary; delete cfgDictionary;
} }
} }
@ -45,4 +45,3 @@ unsigned char ConnectivityManager::getError() const
{ {
return _error; return _error;
} }