Function esp_idf_hal::sys::esp_mqtt_client_destroy

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

@brief Destroys the client handle

Notes:

  • Cannot be called from the MQTT event handler

@param client MQTT client handle

@return ESP_OK ESP_ERR_INVALID_ARG on wrong initialization