     }
     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()){

}

void printValue(long value){
  if (!isnan(value))
  {
    Serial.print(value); Serial.print(", ");
  }
  else
  {
    Serial.print("'NaN', ");
  }
}



#define XBEESLEEPPIN 2

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

