2024-10-29 11:15 PM
Hi,
I am using Zigbee_OnOff_Router_NVM to test the opening and closing function of IasZone Server. I found that by default, the notification generated by modifying the status value is 'Report Attributes'. But according to document 'Zigbee Cluster Library', a 'Zone Status Change Notification Command' should be generated.
I also found that if the following code is commented on, it can generate the 'Zone Status Change Notification Command' notification correctly, but the status value will lose persistence.
/* Allocate the attributes */
// if (ZbZclAttrAppendList(zigbee_app_info.iaszone_server_1, zcl_iaszone_server_attr_list, ZCL_ATTR_LIST_LEN(zcl_iaszone_server_attr_list)))
// {
// ZbZclClusterFree(zigbee_app_info.iaszone_server_1);
// return ;
// }
I want to know how to generate 'Zone Status Change Notification Command' notifications while enabling data persistence.
I provided the source code I used.
Thanks
DL_Weng