Skip to main content

pamoja_transport_mqtt

Function pamoja_transport_mqtt 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_transport_mqtt( config: *const PamojaMqttConfig, ) -> *mut PamojaTransport
Expand description

Creates an MQTT transport from broker settings.

§Arguments

  • config - the broker settings, read the same way a client reads them.

§Returns

A handle the caller must release with pamoja_transport_free or hand to a call that consumes it, or null on failure.

§Safety

config must point to a valid config whose strings are valid null-terminated UTF-8 for the duration of the call.