 int RECV_PIN = 8;
 IRrecv irrecv(RECV_PIN);
 decode_results results;
-int deviceStatus = 0;
-int pendingTimer;
+
 char deviceId[3] = "??";
 char XBeeInString[50];
-int state = IDLE;
+
 unsigned int ledStateInterval = 500;
 unsigned long randomDelay = 0;
 unsigned long start_time;


  Serial.print("my devide ID: ");
  Serial.println(deviceId);  
}

#include <SoftwareSerial.h>
#include <IRremote.h>
#include <string.h>
#include "utils.h"

// #define DEBUG

// In this simplified design, there is no need to save states on client for feedback
// so I have deleted all state variables like IDLE, PENDING, CONNECTED, etc.

SoftwareSerial XBee(2, 3); // RX, TX
int ledStatePin = 13;
