   lastReceivedTime = millis();
 }
 
+void requestThingName() {
+  client.print("GET /dweet");
+  client.println(" HTTP/1.1");
+  client.println("Host: thingspace.io");
+  client.println("Connection: Keep-Alive");
+  client.println();
+}
+
 
 /* function to read eventual received data */
 boolean read_received_data() {

            
          }
          else {
            /* the "thing" field is not as expected. Do nothing */
          }
        }
        else {

  if (client.connect(TARGET_SERVER, HTTP_PORT)) {
    /* connection request succeed */
    Serial.println("connected!");
    
    /* if thing_name not provided in Settings.h, we can obtain a temporary thing-name from thingspace.io.
    /* NOTE: Temporary thing-names retrieved from server will NOT persist between power-cyles.
    */
    if (thing_name == "")
    {
       requestThingName(); 
    }
  }
  else {
    /* connection request failed */
