esp_zb_custom_cluster_add_custom_attr() function
Add customized attribute in customized cluster.
Arguments
attr_id
An attribute id to be added
attr_type
Type of attribute to be added, refer to esp_zb_zcl_attr_type_t
attr_access
Access type of attribute to be added, refer to esp_zb_zcl_attr_access_t
value_p
A pointer to attribute value wants to add
Return value
- ESP_OK on success - ESP_ERR_INVALID_ARG if attribute is existed or unsupported