   WiFi.softAP(ssid, passphrase, 6);
   Serial.println("softap");
   launchWeb(1);
+  digitalWrite(SEARCH_LED, LOW);
+  digitalWrite(AP_LED, HIGH);
   Serial.println("over");
 }
 /////////////////////////////////////////////////////////////////////////////////////////////////////////

  Serial.print("PASS: ");
  Serial.println(epass);  
  
   if (wifiConnected())
   {
    Serial.println("");
    Serial.println("Connected to wifi network :/ ");
    return;
    } 

}
/////////////////////////////////////////////////////////////////////////////////////////////////////////
bool wifiConnected(void) {
  WiFi.mode(WIFI_STA);
  int c = 0;
  if ( esid.length() > 1 ) {

  Serial.begin(115200);
  EEPROM.begin(512);
  //pinMode(0, INPUT);
  pinMode(USER_BUTTON, INPUT);
  pinMode(LED_BUILTIN, OUTPUT);
  pinMode(WIFI_LED, OUTPUT);
  pinMode(AP_LED, OUTPUT);
  pinMode(SEARCH_LED, OUTPUT);
  digitalWrite(WIFI_LED, LOW);
  digitalWrite(AP_LED, LOW);
  digitalWrite(SEARCH_LED, HIGH);
  digitalWrite(LED_BUILTIN, HIGH); //Turn off
  WiFi.begin();
  delay(1000);
  Serial.println("");
  Serial.println("delay done");
  Serial.println(digitalRead(USER_BUTTON));

  //If button is pressed on power up then start access point for config
  if (digitalRead(USER_BUTTON)==false)
  { 
    Serial.println("button pressed at beginning");
    delay(250);
    if (digitalRead(USER_BUTTON)==false)
      {
        setupAP();
      }
