Skip to main content

pamoja_mqtt_client_disconnect

Function pamoja_mqtt_client_disconnect 

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

Closes the connection and stops the background event loop.

§Returns

PamojaStatus::Ok once the client has disconnected.

§Safety

client must be a live handle from pamoja_mqtt_client_new.