 void loop(){
   //need to call monitor to check for new data on ethernet
   skynetclient.monitor(); 
-}
+}

}

aJsonObject *msg;

void onMessage(aJsonObject *data){
  //parse or print your message
  Serial.println(aJson.print(data));
  
  msg = aJson.getObjectItem(data, RED);
  if (msg != NULL) {
    if(strcmp(msg->valuestring, ON) == 0){
      Serial.println("red on");
      digitalWrite(REDLED, HIGH);
    }else{

    }
  }
  
  color = aJson.getObjectItem(msg, GREEN);
  if (color != NULL) {
    if(strcmp(color->valuestring, ON) == 0){
      Serial.println("green off");
      digitalWrite(GREENLED, HIGH);
    }else{
