Hi, guys. I am trying to send something from XBee Series 2 coordinator API to end device AT. The frame of my work is
PC - Arduino Mega - XBee Coordinator <-----------------------> XBee end device - XCTU
The code I am using is:
#include <XBee.h>
XBee xbee = XBee();
XBeeAddress64 Broadcast = XBeeAddress64(0x00000000, 0x0000ffff);
//XBeeAddress64 Broadcast = XBeeAddress64(0x0013A200, 0x408B45AD);
char Hello[] = "Hello";
void setup() {
// start serial
Serial.begin(9600);
Serial2.begin(9600);
xbee.setSerial(Serial2);
}
void loop() {
ZBTxRequest zbtx = ZBTxRequest(Broadcast, (uint8_t *)Hello, strlen(Hello));
xbee.send(zbtx);
}
I found that I can send the message "Hello" to the end device with broadcast address, but I cannot send with the address 0x0013A200408B45AD. Could someone help me?
Thanks