Skip to main content

esp_mqtt5_client_set_unsubscribe_property

Function esp_mqtt5_client_set_unsubscribe_property 

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

@brief Set MQTT5 client unsubscribe property configuration

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

@param client mqtt client handle @param property unsubscribe property

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