 
   if (!json.success()) {
     //Serial.println("Failed to parse config file");
-    return "false";
+    return "";
   }
 
   return json[param];

  File configFile = SPIFFS.open("/config.json", "r");
  if (!configFile) {
    //Serial.println("Failed to open config file");
    return "false";
  }
  size_t size = configFile.size();
  std::unique_ptr<char[]> buf(new char[size]);


  //retrieve user defined hostname
  String tmpHostname = getNetworkConfig("hostname");
  if( tmpHostname!="" )
    HOSTNAME = tmpHostname;
  // else
  //   HOSTNAME = apSSID;

    //Enable to start in AP+STA mode
   WiFi.mode(WIFI_AP_STA);
