cancel
Showing results for 
Search instead for 
Did you mean: 

Persistent data saving callback

ISLTG
Associate III

Hello,

Based on the NVM example, after: ZbPersistNotifyRegister(zigbee_app_info.zb,APP_ZIGBEE_persist_notify_cb,NULL).

What actions cause the device to enter the callback? Where can this information be found?
Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
Ouadi
ST Employee

Hi @ISLTG,

The persistence notify callback is called every time a persistent data change occurs on zigbee network, the stack notifies the change using this callback to the application layer.

As an example, the NVM data is saved immediately in case of network update ( device join, device leave, NWK key update..), ZCL attributes change.

You can refer to the wiki page below that describes the Zigbee persistent data management :

 Connectivity:Zigbee persistent data management and non-volatile memory - stm32mcu

Best regards,

Ouadi

View solution in original post

2 REPLIES 2
Ouadi
ST Employee

Hi @ISLTG,

The persistence notify callback is called every time a persistent data change occurs on zigbee network, the stack notifies the change using this callback to the application layer.

As an example, the NVM data is saved immediately in case of network update ( device join, device leave, NWK key update..), ZCL attributes change.

You can refer to the wiki page below that describes the Zigbee persistent data management :

 Connectivity:Zigbee persistent data management and non-volatile memory - stm32mcu

Best regards,

Ouadi

ISLTG
Associate III

Hello @Ouadi,

Any idea why saving might enter the NMI Handler, or take longer than expected?
I have not changed the NVM functions from the example code.

Thanks,