#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_mqtt_client_disconnect(
client: *mut PamojaMqttClient,
) -> PamojaStatusExpand 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.