Function esp_idf_sys::esp_mqtt_set_config

source ·
pub unsafe extern "C" fn esp_mqtt_set_config(
    client: esp_mqtt_client_handle_t,
    config: *const esp_mqtt_client_config_t,
) -> esp_err_t
Expand description

@brief Set configuration structure, typically used when updating the config (i.e. on “before_connect” event

@param client MQTT client handle

@param config MQTT configuration structure

@return ESP_ERR_NO_MEM if failed to allocate ESP_ERR_INVALID_ARG if conflicts on transport configuration. ESP_OK on success