Added the printing of the AP password in the serial monitor for debug purposes, may be removed later on

This commit is contained in:
Anatole SCHRAMM 2019-04-03 17:19:05 +02:00
parent a33add50f1
commit bd99e8ff27

View File

@ -17,6 +17,13 @@ void setup()
{
// put your setup code here, to run once:
Serial.println("Starting setup");
CFGFileParser cfgFileParser(sab.getSdCardManager(), AP_CFG_FILE);
CFGDictionary<CFGParameterValue> *cfgDictionary = (CFGDictionary<CFGParameterValue> *) cfgFileParser.parseFile();
Serial.print("AP PASSWORD : ");if((*cfgDictionary)("PASSWORD") != NULL)Serial.println((*cfgDictionary)("PASSWORD")->stringValue());
delete cfgDictionary;
pinMode(GPIO_0, INPUT);
sab.getScreenManager().addView(&(view_1), &v1p, 0);
sab.getScreenManager().addView(&(view_2), &vap, 1);