Updated class due to changes to the Dictionary utility class
This commit is contained in:
parent
f63e7bf835
commit
e7e820ab2a
@ -22,7 +22,7 @@ ConnectivityManager::ConnectivityManager(SDCardManager *sdCardManager) : _error(
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@ ConnectivityManager::ConnectivityManager(SDCardManager *sdCardManager) : _error(
|
||||
cfgDictionary = (CFGDictionary<CFGParameterValue> *) cfgFileParserSTA.parseFile();
|
||||
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;
|
||||
}
|
||||
}
|
||||
@ -45,4 +45,3 @@ unsigned char ConnectivityManager::getError() const
|
||||
{
|
||||
return _error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user