Bluetooth mesh persistent storage


laczenJMS
 

Hi,

I would like to add persistent storage to my mesh nodes. After
provisioning and configuration values would be stored to flash (to
keep it simple a task would be scheduled to see if there are any
changes to the provisioning/configuration data and store if required).
I would like to do this with only minimal changes to the bluetooth
mesh library.

For the model I can get all data in my main routine using calls like:
comp.elem[0].addr, comp.elem[0].models[1].pub->addr, ...

For the mesh data I cannot find a way like this, is there a
possibility to get the netkey, iv_index, sequence, ... ? I would like
to store these values so that bt_mesh_provision() can be used to do
the provisioning when stored provisioning data is found.

Kind regards,

Jehudi

Join devel@lists.zephyrproject.org to automatically receive all group messages.