This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I want to create 2 endpoints on the same zigbee device.

I want to create two switch EP(if it is possible I would like to it as much switches as possible).

I am using WIndows 10 with Segger and nRF COnnect SDK v1.5.0.

I tried it in the following way(I tried other many ways but seems that defining the same macro is conflicting):

zb_zcl_basic_attrs_ext_t         basic_attr;

ZB_ZCL_DECLARE_BASIC_ATTRIB_LIST_EXT(
	basic_attr_list,
	&basic_attr.zcl_version,
	&basic_attr.app_version,
	&basic_attr.stack_version,
	&basic_attr.hw_version,
	basic_attr.mf_name,
	basic_attr.model_id,
	basic_attr.date_code,
	&basic_attr.power_source,
	basic_attr.location_id,
	&basic_attr.ph_env,
	basic_attr.sw_ver);

/* Declare attribute list for Identify cluster. */
ZB_ZCL_DECLARE_IDENTIFY_ATTRIB_LIST(identify_attr_list, &attr_identify_time);

/* Declare cluster list for Dimmer Switch device (Identify, Basic, Scenes,
 * Groups, On Off, Level Control).
 * Only clusters Identify and Basic have attributes.
 */
ZB_HA_DECLARE_DIMMER_SWITCH_CLUSTER_LIST(dimmer_switch_clusters,
					 basic_attr_list,
					 identify_attr_list);

/* Declare endpoint for Dimmer Switch device. */
ZB_HA_DECLARE_DIMMER_SWITCH_EP(dimmer_switch_ep,
			       LIGHT_SWITCH_ENDPOINT,
			       dimmer_switch_clusters);

ZB_HA_DECLARE_DIMMER_SWITCH_EP(dimmer_switch_ep_snd,
			       LIGHT_SWITCH_ENDPOINT_SND,
			       dimmer_switch_clusters);

/* Declare application's device context (list of registered endpoints)
 * for Dimmer Switch device.
 */
#ifndef CONFIG_ZIGBEE_FOTA
//ZBOSS_DECLARE_DEVICE_CTX_1_EP(dimmer_switch_ctx, dimmer_switch_ep);
ZBOSS_DECLARE_DEVICE_CTX_2_EP(dimmer_switch_ctx, dimmer_switch_ep, dimmer_switch_ep_snd);
#else

I get the following error:

Do I have to create different atributes/clusters to each end point?

What way would be the best to do it?

Also I would like the best approach to send and receive data(integers, arrays, etc) over zigbee. Specially receive.

Parents Reply Children
No Data
Related