   if ((str = strtok_r(p, ",", &p)) != NULL)
     year = atoi(str);
 
-  setTime(hour,minute,second,day,month,year);
+  setTime(hour, minute, second, day, month, year);
 }


void setup() {
  Serial.begin(57600);
  
  // Init the Ethernet shield
  Ethernet.begin(mac);
  
  // Connect!
  if (!client.connect(hostname, port))
    Serial.println("Not connected.");
  
  // Catch any received data
  client.setDataArrivedDelegate(onData);
  
  // Second handshake
  client.send("Say welcome");
}

void loop() {
  client.monitor();
}

// Websocket message handler
void onData(SocketIOClient client, char *data) {
  int lightNumber;
  
  // Light 1
  if(strstr(data, "1")) {
    lightNumber = 0;
  }
  
  // Light 2
  if(strstr(data, "2")) {
    lightNumber = 1;
  }
  
  // Light 3
  if(strstr(data, "3")) {
    lightNumber = 2;
  }
  
  // Light 4
  if(strstr(data, "4")) {
    lightNumber = 3;
  }
  
  // Turn on the light
  if(strstr(data, "on")) {
    transmitter.sendUnit(lightNumber, true);
  } else { // Turn off
    transmitter.sendUnit(lightNumber, false);
  }
}

void timeUpdate(char *timeString)
{
  char *p = timeString;
  char *str;
  byte second, minute, hour, day, month;

#include "SocketIOClient.h"
#include "Ethernet.h"
#include "SPI.h"
#include <Time.h>
#include <string.h>

// Used for the KAKU remote functionality
