This is the multi-page printable view of this section. Click here to print...

Return to the regular view of this page

As of 2025-07-24

on_rx_packet()

Processing upon packet reception
    Describes the process when a received packet is received.
    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 will be linked.

    If true is set to b_handled within this function, it notifies the MWX library that the received packet has been processed within the application. When marked as processed, unnecessary processing is suppressed (the processing of the_twelite.receiver is not performed).