 
 
 void setup() {
-    
+
     Serial.begin(9600);
     Serial1.begin(9600);
     xbee.setSerial(Serial1);
-    
+
     Serial.println ("Todo ok hasta aqui");
 
 }
 
 void loop() {
-    
-    
+
+
    xbee.readPacket();
-    
+
     if (xbee.getResponse().isAvailable()) {
       // got something
       if (xbee.getResponse().getApiId() == ZB_RX_RESPONSE) {

// This #include statement was automatically added by the Particle IDE.
#include <MQTT.h>

// xbee object
XBee xbee = XBee();

// payload array for xbee transmission 
byte payload[6] ;

// TX objects:

        }
      } else {
      	// not something we were expecting
        Serial.print ("I got something not expected...moving on");
      }
    } else if (xbee.getResponse().isError()) {
      Serial.print("Error reading packet.  Error code: ");
      Serial.println(xbee.getResponse().getErrorCode());
    }


    delay(1000);

}
