W5100 with PushingBox to Google Docs stuck

Hi,

I use the Arduino UNO 3 and W5100 to send data to PushingBox and PushingBox send data to Google Docs.

I have ran the code as the attachment for a month ,but it stucked in this morning.

The serial monitor showed the temperature and humidity normally until W5100 sent the data to PushingBox,when the data have been written to Google Docs, the Serial Monitor stuck.
:disappointed_relieved: :sob:

Please help!
Thanks.

w5100_dht22_temp.ino (9.22 KB)

You should read and display the response from the PushingBox server. Maybe that will give you an idea what is wrong.

SurferTim: You should read and display the response from the PushingBox server. Maybe that will give you an idea what is wrong.

I edited the toGoogle to

void toGoogle(){

  client.stop();
  if(DEBUG){
    Serial.println("connecting...");
  }

  if (client.connect(serverName, 80) == 1 ) {    

    if(DEBUG){
      Serial.println("connected");
    }

    if(DEBUG){
      Serial.println("sending request");
    }



    //Serial.println("Connected");
    client.print("GET /pushingbox?devid=44444444&Temperature=");
    client.print(myDHT22.getTemperatureC());
    //Serial.print(myDHT22.getTemperatureC());
    client.print("&");
    client.print("Humidity=");
    client.print(myDHT22.getHumidity());
    //Serial.print(myDHT22.getHumidity());
    client.println(" HTTP/1.1");
    client.println("Host: api.pushingbox.com");
    client.println("User-Agent: Arduino");
    //client.println("Connection: close");
    client.println();

    if(DEBUG){
      while (client.available())
      {
        char response = client.read();
        Serial.print(response);
      }
    }

    client.flush();
    client.stop();
  }

  else{
    Serial.println("connection failed");
    client.stop();
  }

}

But I can't see anything on the serial monitor. :sob: :sob:

I will use the WireShark to see the connecting status tomorrow monring.