   while (WiFi.status() != WL_CONNECTED) {
     delay(500);
     Serial.print(".");
+    blink(4,5,10);
     tries++;
-    if (tries > 25 ) return false;
-  }
+    if (tries > 20 ) 
+      return false;
+  }
+
   Serial.println("");
   Serial.println("WiFi connected");
   blink(2,100,500);

      String doConnect = getParam(req,"connect");
      
      if (doConnect =="Yes" && ssid != "")  {
      putConfiguration();
      wifi_connected = connectWiFi();
      if (wifi_connected) {
          response = String("<h1>Connecting to access point Bye Bye</h1>");
  
          httpReturn(response);
          // stop the ap - how ?
          ap_started = false;
          // stop the server - how ?
          return;
      }
      message = "Wifi not connected";
     }
  }
// return form 

  }
// form data is the last line 
  client.flush();
  String message;
  String response;
  String reply = getParam(req,"ssid");
  if (reply != "") {
      ssid =getParam(req,"ssid");
      password = getParam(req,"password");
      stream_id = getParam(req,"stream_id");
