Skip to main content

pamoja_mqtt_client_is_connected

Function pamoja_mqtt_client_is_connected 

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

Reports whether the client currently holds an active connection.

§Returns

true while connected. Returns false for a null handle or if the check panics.

§Safety

client must be a live handle from pamoja_mqtt_client_new, or null.