Topic

FAQ
Login Register
Data send status
ZNS
Jul 20, 2021 17:03

/

A

/A

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;


1 replies
TL_hk Jul 21, 2021 15:36
1
/A

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.