   // attempt to connect to Wifi network:
   while (status != WL_CONNECTED) {
     status = WiFi.begin(ssid, pass);
+    Serial.println("wait 10 seconds for wifi connection:");
     // wait 10 seconds for connection:
-	Serial.println("wait 10 seconds for connection");
     delay(10000);
   }
-  Serial.println("connection succeeded");
+  Serial.println("wifi connection succeeded:");
 }
 
 void azureMessageloop() 


unsigned long lastConnectionTime = 0;            
const unsigned long pollingInterval = 5L * 1000L; // 5 sec polling delay, in milliseconds


int status = WL_IDLE_STATUS;


  }
  else {
    // if you couldn't make a connection:
    Serial.println("connection to azure webservice failed");
  }
}

