Function esp_idf_hal::sys::esp_mqtt_client_disconnect

source ยท
pub unsafe extern "C" fn esp_mqtt_client_disconnect(
    client: *mut esp_mqtt_client,
) -> i32
Expand description

@brief This api is typically used to force disconnection from the broker

@param client MQTT client handle

@return ESP_OK on success ESP_ERR_INVALID_ARG on wrong initialization