Skip to main content

pamoja_chirpstack_uplink_topic

Function pamoja_chirpstack_uplink_topic 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_chirpstack_uplink_topic( application_id: *const c_char, ) -> *mut PamojaString
Expand description

Builds the MQTT topic an application’s uplink events are published on, with a wildcard in place of the device.

§Arguments

  • application_id - the application’s identifier, as ChirpStack shows it, or + for every application’s events.

§Returns

The topic, application/<id>/device/+/event/up, which the caller releases with pamoja_string_free, or null for a null or non-UTF-8 argument.

§Safety

application_id must be a NUL-terminated string or null.