esp_idf_hal::sys

Function 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