Skip to main content

pamoja_mqtt_client_connect

Function pamoja_mqtt_client_connect 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_mqtt_client_connect( client: *mut PamojaMqttClient, ) -> PamojaStatus
Expand description

Connects to the broker and starts the background event loop.

§Returns

PamojaStatus::Ok once connected, or an error status whose message is available from pamoja_last_error_message.

§Safety

client must be a non-null handle returned by pamoja_mqtt_client_new and not yet freed.