I tried to use a comunication with two Xbee, this fuction good with two arduino mega, but when i try to use arduino uno, with the same code, it doesn´t work, i changed the Serial, but it still no working
#include <SoftwareSerial.h>
#include<XBee.h>
SoftwareSerial SerialXbee(2,3);
//Recepcion de datos
XBee DeepXbee = XBee();
XBeeResponse response = XBeeResponse();
ZBRxResponse rx = ZBRxResponse();
ModemStatusResponse msr = ModemStatusResponse();
//Envio de datos
uint8_t payload[] = {'E'};
//int Lsb;
//int Msb;
XBeeAddress64 addr64 = XBeeAddress64(0x00000000, 0x0000FFFF);
//XBeeAddress64 addr64 = XBeeAddress64(Msb,Lsb);
ZBTxRequest zbTx = ZBTxRequest(addr64, payload, sizeof(payload));
ZBTxStatusResponse txStatus = ZBTxStatusResponse();
//variables
String Mensaje = "N";
void setup() {
Serial.begin(9600);
SerialXbee.begin(9600);
DeepXbee.setSerial(SerialXbee);
Serial.println("Configuraciones cargadas...");
}