on_rx_packet()

on_rx_packet()

Receives incoming packets.

void on_rx_packet(mwx::packet_rx& pkt, bool_t &b_handled) 

When a wireless packet is received, this function is called from within the MWX library with the data stored in pkt as packet_rx. If this function is not defined in the application, a weak function that does nothing is linked.

Setting b_handled to true in this function tells the MWX library that the incoming packet has been processed in the application. If set to processed', it suppresses unnecessary processing. (Do not process the_twelite.receiver`)

最終更新