Skip to main content

pamoja_chirpstack_uplink_text

Function pamoja_chirpstack_uplink_text 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_chirpstack_uplink_text( uplink: *const PamojaChirpstackUplink, field: u8, ) -> *mut PamojaString
Expand description

Reads one of an uplink event’s text fields.

§Arguments

  • uplink - the event.
  • field - one of the PAMOJA_CHIRPSTACK_* field constants.

§Returns

The text, which the caller releases with pamoja_string_free; an empty string for a field the event left out; or null for a time the event left out, a null handle, or a field constant that names nothing.

§Safety

uplink must be a live handle or null.