esp_zb_zcl_set_attribute_val() function
Set ZCL attribute value.
Arguments
cluster_id
Cluster id for attribute list refer to esp_zb_zcl_cluster_id
cluster_role
Cluster role of this cluster, either server or client role refer to esp_zb_zcl_cluster_role
value_p
pointer to new value
check
The access method of attribute whether is required to check or not
Return value
zcl status refer to esp_zb_zcl_status_t
Notes
Set the local attribute from the specific endpoint, cluster and attribute. Please look up the Zigbee Cluster Library for the access method of attribute