 }
 
 
-void flash_led(int pin, int number, int time)
+void flash_3leds(int pin1, int pin2, int pin3, int number, int time)
 {
-  pinMode(pin, OUTPUT);
-  for(int i=0; i<number; i++) {
-    digitalWrite(pin, HIGH);
+  int i, j;
+  int pins[] = {pin1, pin2, pin3};
+
+  for(j=0; j<3; j++)
+    pinMode(pins[j], OUTPUT);
+
+  for(i=0; i<number; i++) {
+    for(j=0; j<3; j++)
+      digitalWrite(pins[j], HIGH);
     delay(time);
-    digitalWrite(pin, LOW);
+    for(j=0; j<3; j++)
+      digitalWrite(pins[j], LOW);
     delay(time);
   }
 }

}

void loop() {
  flash_led(13, 5, 200);

  // if there are incoming bytes available
  // from the server, read them and print them:

const unsigned long postingInterval = 10*1000; // wait 10 seconds
boolean canConnect = false;

const int redLed = 3;
const int greenLed = 5;
const int yellowLed = 6;


void setup() {
  //Initialize serial and wait for port to open:
  Serial.begin(9600);
  flash_3leds(redLed, greenLed, yellowLed, 5, 100);
  while (!Serial) { ; } // wait for serial port to connect.
  flash_3leds(redLed, greenLed, yellowLed, 5, 400);

  // check for the presence of the shield:
  if (WiFi.status() == WL_NO_SHIELD) {
