Hi all,
I am developing on nRF Mesh SDK 4.0.0 with nRF52833 DK (PCA10100).
To save/restore persistent model state to flash, I added the code using mesh_config_entry_get()/mesh_config_set() functions as below.
1. I added mesh_config_entry_get() in model initialization function.
It will fail if there is no entry in flash, but after saved once, it can read it afterwards.
2. I also added mesh_config_entry_set() function in model set callback.
When I send a set message, log shows that this function call is successful, i.e. returns NRF_SUCCESS.
But, when I power cycled the board, it still cannot get the entry and mesh_config_get() always failed.
What is wrong/missing in my code? Can somebody advice about?
TIA.