Function esp_idf_svc::hal::sys::esp_mqtt_client_reconnect

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

@brief This api is typically used to force reconnection upon a specific event

@param client MQTT client handle

@return ESP_OK on success ESP_ERR_INVALID_ARG on wrong initialization ESP_FAIL if client is in invalid state