Hi, Im trying to add multiple endpoint support to a zigbee project.
Im using the SDK for Zigbee 2.0 but in the documentation says:
"APIs for multiple endpoints
A single endpoint is defined for the dimmable light device, just as for other standard Zigbee devices. If you want to declare a device with multiple endpoints for the application, use the following API calls to declare the endpoint list:
- ZBOSS_DEVICE_DECLARE_REPORTING_CTX(rep_ctx, rep_count)
- The reporting count
rep_count
reflects the number of reportable attributes for the endpoint.
- The reporting count
- ZBOSS_DEVICE_DECLARE_LEVEL_CONTROL_CTX(lev_ctrl_ctx, lev_ctrl_count)
- The Level Control count
lev_ctrl_count
reflects the number of attributes that require continuous value change (for example, the CurrentLevel attribute in the Level Control cluster).
- The Level Control count
- ZB_AF_DECLARE_ENDPOINT_DESC(ep_id, profile_id, reserved_length, reserved_ptr, cluster_number, cluster_list, simple_desc, rep_count, rep_ctx, lev_ctrl_count, lev_ctrl_ctx)
The endpoint list is stored as an array of the zb_af_endpoint_desc_t type. Each call to ZB_AF_DECLARE_ENDPOINT_DESC() adds an item to the ep_list_name
array."
Which fails to declare ep_list_name
. So I think its incomplete, can someone help me with the correct implementation?
Thanks in advance.