esp_mqtt5_client_set_user_property() function
Set MQTT5 client user property configuration This API will allocate memory for user_property, please DO NOT forget `call esp_mqtt5_client_delete_user_property` after you use it. Before publish data, subscribe topic, unsubscribe, etc, call this API to set user property if have
Arguments
user_property
user_property handle
item
array of user property data (eg. {{"var","val"},{"other","2"}})
item_num
number of items in user property data
Return value
ESP_ERR_NO_MEM if failed to allocate ESP_FAIL on fail ESP_OK on success
esp_mqtt5_client_set_user_property() calls 5 functions:
![]()
esp_mqtt5_client_set_user_property()
esp_mqtt5_client_set_user_property() reads 11 variables and writes 2 variables:
![]()
esp_mqtt5_client_set_user_property()
esp_mqtt5_client_set_user_property() allocates 1 types and frees 2 typess:
![]()
esp_mqtt5_client_set_user_property()