From bd99e8ff27cb35591ea8acc61bb20f6ece0dd468 Mon Sep 17 00:00:00 2001 From: Anatole SCHRAMM Date: Wed, 3 Apr 2019 17:19:05 +0200 Subject: [PATCH] Added the printing of the AP password in the serial monitor for debug purposes, may be removed later on --- src/app/app.ino | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/app.ino b/src/app/app.ino index 1604cbc..719a773 100644 --- a/src/app/app.ino +++ b/src/app/app.ino @@ -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 *cfgDictionary = (CFGDictionary *) 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);