 #define gRELEASE 2
 
 
-unsigned long session_id = 0xA90;
+unsigned long session_id;// = 0xA90;
 int clicks;
 gesture_t g = gNONE;
 // An IR LED must be connected to Arduino PWM pin 3.


#define DEBUG
#include "utils.h"


SoftwareSerial XBee(2, 4); // RX, TX


    
    break;
  case CONNECTED:
    // based on gesture, define actions
    if (g == gCLICK) {
      sendXBeePacketFromRaw(&XBee, XBeePacketArr[selectedXBee].id, "i", "0001");
      DEBUG_PRINTLN("[CONNECTED] commands 0001");
      g = gNONE;
    }
    else if (g == gD_TAP) {
      // disconnected
      sendXBeePacketFromRaw(&XBee, XBeePacketArr[selectedXBee].id, "d", XBeePacketArr[selectedXBee].data);
      DEBUG_PRINTLN("[DISCONNECTED] entering IDLE");
      state = IDLE;
      g = gNONE;
    }    
    break;
  default:
    break;
