Skip to main content

pamoja_mqtt_message_topic

Function pamoja_mqtt_message_topic 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_mqtt_message_topic( message: *const PamojaMqttMessage, ) -> *const c_char
Expand description

Returns the topic a message was published to.

§Returns

A pointer to a null-terminated UTF-8 string valid until the message is freed, or null if message is null.

§Safety

message must be a live handle from pamoja_mqtt_client_recv, or null.