     Serial.print("DEBUG :: Status of network connection is ");
     Serial.println(status);
     // wait 10 seconds for connection:
-    delay(3000);
+    delay(6000);
   }
   // you're connected now, so print out the data:
   Serial.println("DEBUG :: You're connected to the network");

#include <WiFi.h>
#include <WiFiClient.h>
#include <WiFiServer.h>
#include <WiFiUdp.h>
#include <PubSubClient.h>
#include <SPI.h>


  //"io.m2m/arduino/lightsensor"
  
  //Format for the message to the following SensorId,temperature,humidity
  
  String tempHumMsg = getSensorId();// + "," + temp + "," + "0.01";
  tempHumMsg.concat(",");
  tempHumMsg.concat(temp);
  tempHumMsg.concat(",");
  tempHumMsg.concat(humidity);
  char message_buff[80];
  tempHumMsg.toCharArray(message_buff, tempHumMsg.length()+1);
  client.publish("arduino-weather-exchange", message_buff);//"Sensor3,17.0,16.3");//getSensorId());// + "," + temp + "," + humidity);
}

String getSensorId() {
  return "need-a-sensor-id";
}


void printWifiData() {
  // print your WiFi shield's IP address:
