Other Parts Discussed in Thread: SYSCONFIG
Hello,
I want when I change the max report, to save it in the nv memory so I can restore it in the case my device resets
I tried this in the zclSampleLight_Init( ):
osal_nv_item_init(ZCD_NV_BDBREPORTINGCONFIG, 2, NULL); osal_nv_read(ZCD_NV_BDBREPORTINGCONFIG, 0, 2, &Req.maxReportInt); if(Req.maxReportInt == 0x0000){ Req.maxReportInt = 20; } Zstackapi_bdbRepAddAttrCfgRecordDefaultToListReq(appServiceTaskId,&Req);
but for some reason sometimes maxReportInt decreases by 1