This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

pstorage_access_status_get(&count) sets count to 1

I am starting to port the example nRF5_SDK_11.0.0-2.alpha_bc3f6a0\examples\ble_peripheral\ble_app_hrs to my board. I haven't made any change to the example to save something using hte pstorage API. Still when starting BLE advertising, ble_advertising_start() calls pstorage_access_status_get(&count) and count is always set to 1. I hacked the app by setting count to zero to get further but cannot figure out how to fix it.

please help.

Parents
  • device manager is trying to load your persistant bond information at the time of dm_init. It is possible that pstorage activity is not finished at the time of the call which is not an error. Why do you require count to be 0 at this moment?

Reply
  • device manager is trying to load your persistant bond information at the time of dm_init. It is possible that pstorage activity is not finished at the time of the call which is not an error. Why do you require count to be 0 at this moment?

Children
No Data