esp_zb_zcl_add_privilege_command() function
Add a callback and the privilege command the Zigbee cluster in endpoint.
Arguments
endpoint
The specific endpoint for @p cluster
cluster
The specific cluster for @p command
command
The specific command ID is required to handle for users.
Return value
- ESP_OK: on success - ESP_FAIL: on failure
Notes
The privilege command will skip the Zigbee stack and be exposed to users by the callback indirectly. Allowing different commands to use the same callback.