|
|
@@ -91,9 +91,9 @@ static void bdb_start_top_level_commissioning_cb(uint8_t mode_mask)
|
|
|
ESP_ERROR_CHECK(esp_zb_bdb_start_top_level_commissioning(mode_mask));
|
|
|
}
|
|
|
|
|
|
-void user_find_cb(uint8_t zdo_status, uint16_t addr, uint8_t endpoint)
|
|
|
+void user_find_cb(esp_zb_zdp_status_t zdo_status, uint16_t addr, uint8_t endpoint, void *user_ctx)
|
|
|
{
|
|
|
- ESP_LOGI(TAG, "User find cb: address:0x%x, endpoint:%d, response_status:%d", addr, endpoint, zdo_status);
|
|
|
+ ESP_LOGI(TAG, "User find cb: response_status:%d, address:0x%x, endpoint:%d", zdo_status, addr, endpoint);
|
|
|
if (zdo_status == ESP_ZB_ZDP_STATUS_SUCCESS) {
|
|
|
on_off_light.endpoint = endpoint;
|
|
|
on_off_light.short_addr = addr;
|
|
|
@@ -145,7 +145,7 @@ void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct)
|
|
|
esp_zb_zdo_match_desc_req_param_t cmd_req;
|
|
|
cmd_req.dst_nwk_addr = dev_annce_params->device_short_addr;
|
|
|
cmd_req.addr_of_interest = dev_annce_params->device_short_addr;
|
|
|
- esp_zb_zdo_find_on_off_light(&cmd_req, user_find_cb);
|
|
|
+ esp_zb_zdo_find_on_off_light(&cmd_req, user_find_cb, NULL);
|
|
|
break;
|
|
|
default:
|
|
|
ESP_LOGI(TAG, "ZDO signal: %d, status: %d", sig_type, err_status);
|