Skip to main content

esp_mqtt5_client_set_subscribe_property

Function esp_mqtt5_client_set_subscribe_property 

Source
pub unsafe extern "C" fn esp_mqtt5_client_set_subscribe_property(
    client: *mut esp_mqtt_client,
    property: *const esp_mqtt5_subscribe_property_config_t,
) -> i32
Expand description

@brief Set MQTT5 client subscribe property configuration

This API will not store the subscribe property, it is one-time configuration. Before call esp_mqtt_client_subscribe to subscribe topic, call this API to set subscribe property if have

@param client mqtt client handle @param property subscribe property

@return ESP_ERR_INVALID_ARG on wrong initialization ESP_FAIL on fail ESP_OK on success