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

Sir How to call the cmd_zb_match_desc() function inside the switch case ?

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
static void cmd_zb_match_desc(nrf_cli_t const * p_cli)
{
NRF_LOG_INFO("WELCOME");
zb_zdo_match_desc_param_t * p_req;
zdo_tsn_ctx_t * p_tsn_cli;
zb_buf_t * p_buf;
uint16_t * p_cluster_list = NULL;
uint8_t len = sizeof(p_req->cluster_list);
zb_ret_t zb_err_code;
zb_bool_t use_timeout = ZB_FALSE;
zb_uint16_t timeout = ZIGBEE_CLI_MATCH_DESC_RESP_TIMEOUT;
int timeout_offset;
zb_uint16_t temp;
int count=6;
char int_array[]={"0xfffd","0xfffd","0xc05","1","0","0"};
// We use p_cluster_list for calls to ZBOSS API but we're not using
// p_cluster_list value in any way.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Sir in the above code i have a cmd_zb_match_desc() but i am calling inside the switch case but after calling i didn't able going inside the finction

please give the Suggestion how to call this function????? 

case BSP_EVENT_KEY_3:
cmd_zb_match_desc(p_cli);
return;