I'm using XBee S1, and here's my XBee configuration:
TX
CH = C
PAN ID = 1111
DL = DDDD
MY = AAAA
CE = 0
AP = 2
RX
CH = C
PAN ID = 1111
DL = 4444
MY = DDDD
CE = 1
AP = 2
in TX, the xbee successfully sent the data, I know that because it's come from this code:
if (xbee.getResponse().getApiId() == TX_STATUS_RESPONSE) {
xbee.getResponse().getTxStatusResponse(txStatus);
// get the delivery status, the fifth byte
if (txStatus.getStatus() == SUCCESS) { //the value here is true
but in RX, the xbee got an Error, it's from this code:
} else if (xbee.getResponse().isError()) { // the value here is true
I'm sorry for the inconvenience Sir,
Before, I just checking the data using LED and it give me error result.
But when I checking data using software serial, it give me the right result and Error sometimes,, I think it's normal isn't it?
(even though I don't know why the led just give me the error result, not both of them)