Good day!
I need to save sensor configs in persistent storage. What is better to use for this purpose: flash manager from nRF Mesh SDK or fstorage from nRF SDK?
I tried flash manager:
Initialization:
As you can see commented lines 21 and 22 I tried different variants of initialization. Line 21 didn't work at all. Other lines starts fine and crashes while provisioning.
The questions are:
- What is better to use for this purpose: flash manager from nRF Mesh SDK or fstorage from nRF SDK?
- If Flash manager is prefered how to initialize it?
- How to check at startup that data was already stored?
nRF SDK for Mesh v 4.0, nRF SDK 16, nRF52840 (Linux, SeS)
UPD 24/04/20:
I've tried FDS solution. Fail.
UPD 24/04/20
I increased this value in sdk_config.h #define FDS_VIRTUAL_PAGES 8 and application started... and crashed after about 15 minutes.
So question is still opened
UPD 25/05/20
Solution based on Mesh config entry is working! That's great! But now I have new question:
what is the proper way to store kind of blob, 512bytes for example represented as array?
My solution: