Topics

Bluetooth: Mesh: Saving Server's State on SoC flash


vikrant8051 <vikrant8051@...>
 

Hi,

Bluetooth Mesh stack is already utilizing setting layer (#FCB)
to store mesh related data on SoC flash. Need examples so that
its implementation along with Bluetooth Mesh sample code
would not impact Mesh's persistent data ?

Thank You !!


Johan Hedberg
 

Hi Vikrant,

On Wed, Jul 18, 2018, vikrant8051 wrote:
Bluetooth Mesh stack is already utilizing setting layer (#FCB)
to store mesh related data on SoC flash. Need examples so that
its implementation along with Bluetooth Mesh sample code
would not impact Mesh's persistent data ?
You should be able to use the same settings storage for your own data as
well. The Bluetooth stack (Mesh included) uses the prefix "bt/" for all
key names stored in settings, so as long as you use something else for
your own data there shouldn't be any risk of conflicts.

Johan


vikrant8051 <vikrant8051@...>
 

Hi Johan,

But I need reference example or files from mesh stack which show how
to save & retrieve variable after reboot using setting layer ?

Thank You !!

On Wed, Jul 18, 2018 at 3:30 PM, Johan Hedberg <johan.hedberg@...> wrote:
Hi Vikrant,

On Wed, Jul 18, 2018, vikrant8051 wrote:
> Bluetooth Mesh stack is already utilizing setting layer (#FCB)
> to store mesh related data on SoC flash. Need examples so that
> its implementation along with Bluetooth Mesh sample code
> would not impact Mesh's persistent data ?

You should be able to use the same settings storage for your own data as
well. The Bluetooth stack (Mesh included) uses the prefix "bt/" for all
key names stored in settings, so as long as you use something else for
your own data there shouldn't be any risk of conflicts.

Johan