Skip to main content

pamoja_lorawan_rx_fport

Function pamoja_lorawan_rx_fport 

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

Returns the port a decoded frame was sent on.

§Arguments

  • rx - the decoded frame.
  • out_fport - receives the port.

§Returns

true when the frame carries a port, with *out_fport written, or false for a frame that carries only frame options and so has none.

§Safety

rx must be a live handle from pamoja_lorawan_session_decode, or null, and out_fport must point to a writable uint8_t.