on_tx_comp()
Processing upon packet transmission completion
Describes the processing performed when the transmission is completed.
void on_tx_comp(mwx::packet_ev_tx& ev, bool_t &b_handled)
This function is called within the MWX library when the wireless packet transmission is finished, with data stored in ev
as packet_ev_tx
. If this function is not defined in the application, a do-nothing weak function is linked.
ev.u8CbId
is the ID at transmission, and ev.bStatus
is a flag indicating transmission success (1) or failure (0).
If true is set to b_handled
within this function, it informs the MWX library that the received packet has been processed within the application. When marked as processed, unnecessary processing is suppressed (event callback functions are not called for the_twelite.app
, .board
, or .settings
).