Hello,
We are facing issue that when a write attribute command is send for QAPI_ZB_CL_OCCUPANCY_ATTR_ID_PIR_OCCUPIED_TO_UNOCCUPIED_DELAY attribute, the server callback is not been hit for any event.
We have used zcl_occupancy_demo.c file from QCLI_demo example code to create zigbee server and callback for occupancy cluster QAPI_ZB_CL_CLUSTER_ID_OCCUPANCY_SENSING.
After creating server on qca4020 and adding devide to zigbee server, when a write command for QAPI_ZB_CL_OCCUPANCY_ATTR_ID_PIR_OCCUPIED_TO_UNOCCUPIED_DELAY is send, below response is recieved. Below are sniffer log for command send and receive.
ZIGBEE WRITE COMMAND SEND TO QCA4020
ZigBee Cluster Library Frame, Command: Write Attributes, Seq: 6
Frame Control Field: Profile-wide (0x00)
Sequence Number: 6
Command: Write Attributes (0x02)
Attribute Field, Bitmap: c0
Attribute: PIR Occupied to Unoccupied Delay (0x0010)
Data Type: 8-Bit Bitmap (0x18)
Bitmap8: 0xc0
ZIGBEE WRITE COMMAND RESPONSE RECEIVED FROM QCA4020
ZigBee Cluster Library Frame, Command: Write Attributes Response, Seq: 6
Frame Control Field: Profile-wide (0x18)
Sequence Number: 6
Command: Write Attributes Response (0x04)
Status Record
Status: Read Only (0x88)
Attribute: PIR Occupied to Unoccupied Delay (0x0010)
Regards,
Ashaay