   if( tmpHostname!="" )
     HOSTNAME = tmpHostname;
   // else
-  //   HOSTNAME = apSSID;
+  //   HOSTNAME = SSIDNAME;
 
     //Enable to start in AP+STA mode
    WiFi.mode(WIFI_AP_STA);


  tot = WiFi.scanNetworks();
  //set default AP
  byte mac[6];
  WiFi.macAddress(mac);
  String apSSID = String(SSIDNAME) + "-" +  String(mac[3], HEX) + String(mac[4], HEX) + String(mac[5], HEX);
  char softApssid[18];
  //memset(softApssid,0,sizeof(softApssid));
  apSSID.toCharArray(softApssid, apSSID.length()+1);
  delay(1000);
  WiFi.softAP(softApssid);

// uint8_t MAC_array[6];   //mac_address
// char macAddress[12];    //mac_address
String newSSID_param;
String newPASSWORD_param;
IPAddress default_IP(192,168,240,1);
