Skip to main content

pamoja_lorawan_package_status_item

Function pamoja_lorawan_package_status_item 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_lorawan_package_status_item( payload: *const u8, payload_len: usize, out_command: *mut PamojaLorawanPackageCommand, ) -> PamojaStatus
Expand description

Reads one group record of a multicast status answer, TS005-2.0.0 section 4.2.

§Arguments

  • payload - the message from the record on, five bytes or more.
  • payload_len - its length.
  • out_command - receives the record.

§Returns

PamojaStatus::Ok on success.

§Errors

Returns PamojaStatus::Codec when the message ends inside the record.

§Safety

payload must point to payload_len readable bytes and out_command must be writable.