Hi,
I am developing a system similar to door lock system.
In our system, user data should transmit from ZED(or ZR) to ZC.
So i modified the ZB_ZCL_ON_OFF_SEND_REQ macro to add user data.
With wireshark, packet size is ok (includes the user data bytes).
But i cannot extract appended user data at ZC side.(Light On/Off command can be parsed successfully).
I am using HA profile.
Give some clues.
Thanks.
#define my_ZB_ZCL_ON_OFF_SEND_REQ( \
buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, command_id, cb) \
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, dis_default_resp) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), command_id); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, 0xab); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, 0xcd); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, 0xef); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, 0x01); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, 0xaa); \
ZB_ZCL_FINISH_PACKET(buffer, ptr) \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, ZB_ZCL_CLUSTER_ID_ON_OFF, cb); \
}