#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_chirpstack_uplink_parse(
text: *const u8,
text_len: usize,
out_uplink: *mut *mut PamojaChirpstackUplink,
) -> PamojaStatusExpand description
Reads an uplink event from the JSON ChirpStack published.
§Arguments
text- the MQTT message’s payload, UTF-8 JSON.text_len- its length.out_uplink- receives the event.
§Returns
PamojaStatus::Ok on success, with *out_uplink set to a handle the caller must release
with pamoja_chirpstack_uplink_free.
§Errors
Returns PamojaStatus::InvalidArgument if a pointer is null, and PamojaStatus::Codec
for text that is not a JSON object, an event with no device EUI, or a field that does not
read as what it should, with the field named by pamoja_last_error.
§Safety
text must point to text_len readable bytes when that is non-zero, and out_uplink must
be writable.