There is a function u8 af_dataSend(), which I use to send messages over network. I want to know whether my message was delivered or not, but af_dataSend always returns 0 (0 == SUCCESS?).
dstEp.txOptions |= APS_TX_OPT_ACK_TX;
ZigBee multicast |
Print debug information |
New project |
The function afdatasend() returns 0 to indicate that the message has been save to the TX data queue, it's not indicated that the message has been successfully delivered;
You can register the function afsendconfirmCallback() in epinit as follows, the param you get in the callback functions indicates the state of message transmission.