     }
     return 0;
 }
-/*
-    Wake up the XBEE from sleep. 
-    For hibernation periods longer than 10sec, or so, XBee will have to re-join the PAN. 
-    Use ATMY command to confirm that the node got its network address before attempting to send data to DH/DL 
-*/
-/*
-int wakeUpXbee(void){
-    while(getCh() != NULL) ;       //Drain any pending messages on the serial.
-    
-    Serial.print("+++");
-    delay(500);
-    if (getCh()=='O' && getCh()=='K'){
-        for(int j=0; j<5; j++){
-          Serial.println("ATMY");
-          if (!(getCh()=='F' && getCh()=='F' && getCh()=='F' & getCh()=='E')){
-             Serial.println("ATCN");  //Got non-FFFE address. Exit command mode immediately.
-             return 1;
-          }
-          delay(1000);
-        }
-    }
-  return 0;
-}
-*/
 
 char getCh(){
   if (Serial.available()){

  if (lx == 0 && broadband > 65000){ //Sensor appears to be in direct sunlight outside it's resolution limits. Set lx value to max to simplify downstream logic
      lx = 0xFFFF;
  }
  Serial.print("'AmbientLight':"); printValue(lx);
  Serial.print("'BroadbandLight':"); printValue((long)broadband);
  Serial.print("'Infrared':"); printValue((long)infrared);

  Serial.println("}}");
  


#define XBEESLEEPPIN 2

Adafruit_BMP085_Unified bmp = Adafruit_BMP085_Unified(10085);
Adafruit_TSL2561_Unified tsl = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 12345);

