    #if defined(DEVMODE)
    Serial.println("Request done");
    #endif
- }
- }
+ }else{
+  #if defined(DEVMODE)
+  Serial.println("Conecction fail");
+   #endif
+ }
+ #if defined(DEVMODE)
+ int timeout = millis() + 20000;
+  while (client.available() == 0) {
+   if (timeout - millis() < 0) {
+     #if defined(DEVMODE)
+     Serial.println("client Timeout !");
+     #endif
+     client.stop();
+     warn();
+     log("client Timeout !");
+   }
+ }
+ while(client.available()) {
+   String response=client.readStringUntil('}');
+     Serial.println(response);
+ }
+ #endif
+}
 /**
  * Writes the data in the SD.
  * This function act in the following form: first, inactive the wifi-shield

  }
 }
/**
 * Log function, it writes a message in a log file.
 * @param message Message to be
 */
void log(String message){
  digitalWrite(WIFIPIN,HIGH); //inactive wifi-shield
  digitalWrite(SDPIN,LOW); //active SD


  if (myFile){
    //write ISO date ex: 1994-11-05T08:15:30-05:00
    myFile.print(year);myFile.print("-");

          ppm = measure[2]*256+measure[3];
          co=ppm;
          #if defined(DEVMODE)
          Serial.print("  [CO]:  ");
          Serial.println(ppm);
          #endif

