Hello, I am a student studying zigbee.
I want to communicate zigbee with the nRF52840 board, but first I checked the lead on/off of the board where zc_light was uploaded with zc_light,zc_switch to learn.
In 'zc_switch' on zc_switch, 'static zb_void_t light_switch_send_on_off (zb_b_buffid_t_off' function have
" ZB_ZCL_ON_OFF_SEND_REQ (bufid,
m_device_ctx.bulb_params.short_addr,
ZB_APS_ADDR_MODE_16_ENDP_PRESENT,
m_device_ctx.bulb_params.endpoint,
LIGHT_SWITCH_ENDPOINT,
ZB_AF_HA_PROFILE_ID,
ZB_ZCL_DISABLE_DEFAULT_RESPONSE,
cmd_id,
NULL);"
Here, 'bufid' will have a packet value, but when I put '3' to test it, I don't know where zc_light gets that value.
devzone.nordicsemi.com/.../question-zigbee-send-receive-zc_light-zc_switch
In the answers on the link above,
zb_bufid_t zcl_cmd_buf = param;
zb_zcl_parsed_hdr_t *cmd_info = ZB_BUF_GET_PARAM (zcl_cmd_buf, zb_zcl_parsed_hdr_t);
They want me to take this.
I have no idea.
I'd appreciate your help.