Hi,
Is there example code somewhere showing how to use the flash access functions in ble_flash.h?
Thanks,
Hi,
Is there example code somewhere showing how to use the flash access functions in ble_flash.h?
Thanks,
This module is used by the bond manager, so you might have some use in looking at it. See Source/ble/ble_bondmngr.c.
Thanks. Is using ble_flash the best way to maintain a persistent state for my application?
Yes, if you need to keep some state over power-cycles, you'll have to write the information to flash, and to do so, you should use ble_flash.
@olha, sorry, this was answered a long time ago, but I am assuming fstorage is the preferred way of working with flash these days, correct?