Hi Team,
I am using NCS v2.9.0 and trying to implement a custom Zigbee cluster with custom attributes.
Could you please suggest an example or guide me on how to send custom data using the cluster as a client role?
Hi Team,
I am using NCS v2.9.0 and trying to implement a custom Zigbee cluster with custom attributes.
Could you please suggest an example or guide me on how to send custom data using the cluster as a client role?
Hi,
Are you using the nRF Connect SDK directly, or are you using the Zigbee R23 add-on for the nRF Connect SDK? You should use the add-on. There are instructions on how to install the add-on in the add-on's Requirements and setup documentation.
The API and documentation for ZBOSS (the Zigbee stack) can be found here: ZBOSS R23 Documentation.
There is some information on declaring a custom cluster in Implementing a Zigbee end product with ZCL. You need to define a header file, like zb_zcl_<cluster_name>.h. We already have a custom cluster file that you can look at as an example: zb_zcl_custom_cluster.h.
After you have created the custom cluster, you must integrate it into your device context and endpoint, just as you do with other clusters (i.e., as described under declare cluster list, endpoint simple descriptor, and device context in the ZCL guide).
To send data, you can implement a custom function in your cluster file similar to those you can find in zb_zcl_custom_cluster.h.
Best regards,
Marte