 const char SETUPSTR[] PROGMEM = {'Setup...'};
 const char MACMSG[] PROGMEM = {'MAC Address: '};
 const char APIPSTR[] PROGMEM = {'AP IP: '};
+const char NOCONF[] PROGMEM = {'Config file not found!'};
 
 #define PWM_FREQ 100
 #define AP_PASSW "xxx0xxx"
+#define CONFNAME "/wificreds.conf"
 
-ESP8266WebServer myServer(80);
+ESP8266WebServer myServer(8080);
 String stassid = "";
 String stapass = "";
 

  }

  /*
   * TODO: Open and parse the stored credentialsfile 
   */

  if (!hasSavedConfig) {
      // Setup WiFiManager and start the config portal
      WiFiManager wfMan;
      String ssid = "ESP" + String(ESP.getChipId());
      wfMan.setConfigPortalTimeout(180);
      wfMan.setAPCallback(configModeCallback);
      wfMan.setSaveConfigCallback(saveWifiConfigCallback);
      wfMan.setMinimumSignalQuality(10);
      wfMan.setBreakAfterConfig(true);
      //wfMan.setDebugOutput(false);        // for final installation
      wfMan.startConfigPortal(ssid.c_str(), AP_PASSW);
  } 
  
  // Connect to the AP if not connected by the WiFiManager
  WiFi.setAutoConnect(false);
  WiFi.setAutoReconnect(true);
  for (uint8_t count = 5; count>0; count--) {
    if (!WiFi.isConnected()){
      WiFi.begin(stassid.c_str(), stapass.c_str());
    } else {
      break;

#include <ArduinoJson.h>          //https://github.com/bblanchon/ArduinoJson

/* Store strings in PROGMEM

*/
const char CANNOT_CONNECT[] PROGMEM = {'Cannot connect to the AP: '};
const char MOUNTFAIL[] PROGMEM = {'Failed to mount file system!'};
