Skip to main content

pamoja_lorawan_rx_payload

Function pamoja_lorawan_rx_payload 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_lorawan_rx_payload( rx: *const PamojaLorawanRx, ) -> *const u8
Expand description

Returns a pointer to the decrypted payload of a decoded frame.

Use pamoja_lorawan_rx_payload_len for the length. The pointer is valid until the frame is freed.

§Returns

A pointer to the payload, or null if rx is null or the payload is empty.

§Safety

rx must be a live handle from pamoja_lorawan_session_decode, or null.