@@ -78,17 +78,17 @@ void ZigbeeColorDimmerSwitch::findCb(esp_zb_zdp_status_t zdo_status, uint16_t ad
78
78
79
79
// find on_off light endpoint
80
80
void ZigbeeColorDimmerSwitch::findEndpoint (esp_zb_zdo_match_desc_req_param_t *cmd_req) {
81
- uint16_t cluster_list[] = {ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL, ESP_ZB_ZCL_CLUSTER_ID_COLOR_CONTROL,
82
- ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL, ESP_ZB_ZCL_CLUSTER_ID_COLOR_CONTROL};
83
- esp_zb_zdo_match_desc_req_param_t color_dimmable_light_req = {
84
- .dst_nwk_addr = cmd_req->dst_nwk_addr ,
85
- .addr_of_interest = cmd_req->addr_of_interest ,
86
- .profile_id = ESP_ZB_AF_HA_PROFILE_ID,
87
- .num_in_clusters = 3 ,
88
- .num_out_clusters = 3 ,
89
- .cluster_list = cluster_list,
90
- };
91
- esp_zb_zdo_match_cluster (&color_dimmable_light_req, findCb, &_endpoint);
81
+ uint16_t cluster_list[] = {ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL, ESP_ZB_ZCL_CLUSTER_ID_COLOR_CONTROL,
82
+ ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL, ESP_ZB_ZCL_CLUSTER_ID_COLOR_CONTROL};
83
+ esp_zb_zdo_match_desc_req_param_t color_dimmable_light_req = {
84
+ .dst_nwk_addr = cmd_req->dst_nwk_addr ,
85
+ .addr_of_interest = cmd_req->addr_of_interest ,
86
+ .profile_id = ESP_ZB_AF_HA_PROFILE_ID,
87
+ .num_in_clusters = 3 ,
88
+ .num_out_clusters = 3 ,
89
+ .cluster_list = cluster_list,
90
+ };
91
+ esp_zb_zdo_match_cluster (&color_dimmable_light_req, findCb, &_endpoint);
92
92
}
93
93
94
94
// Methods to control the light
0 commit comments