Skip to main content

pamoja_chirpstack_uplink_data

Function pamoja_chirpstack_uplink_data 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_chirpstack_uplink_data( uplink: *const PamojaChirpstackUplink, out_data: *mut *mut PamojaBuffer, ) -> PamojaStatus
Expand description

Copies out the application payload an uplink carried, decoded from base64.

§Arguments

  • uplink - the event.
  • out_data - receives the payload, empty when the event carried none.

§Returns

PamojaStatus::Ok on success, with *out_data set to a buffer the caller releases with pamoja_buffer_free.

§Errors

Returns PamojaStatus::InvalidArgument if either pointer is null.

§Safety

uplink must be a live handle and out_data writable.