 
 // extern "C" void system_set_os_print(uint8 onoff);    //TODO to test without
 // extern "C" void ets_install_putc1(void* routine);
-
-int tot;        //need to save the number of the networks scanned
+int tot = 0;
 String staticIP_param ;
 String netmask_param;
 String gateway_param;
 String dhcp = "on";
-bool connect = false;
+bool connect_wifi = false;
 //String HOSTNAME = "arduino";
 
 

           delay ( 5000 );
         }
       }

     });

     server.on("/boardInfo", []() {

        StaticJsonBuffer<200> jsonBuffer;
        JsonObject& boardInfo = jsonBuffer.createObject();
        String output = "";


bool handleFileRead(String path){
  if(path.endsWith("/")) path += "index.html";
  String contentType = getContentType(path);
  File file = SPIFFS.open(path, "r");
  size_t sent = server.streamFile(file, contentType);
  file.close();
  return true;
}

String toStringIp(IPAddress ip) {
