Skip to main content

esp_mqtt5_client_set_publish_property

Function esp_mqtt5_client_set_publish_property 

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

@brief Set MQTT5 client publish property configuration

This API will not store the publish property, it is one-time configuration. Before call esp_mqtt_client_publish to publish data, call this API to set publish property if have

@param client mqtt client handle @param property publish property

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