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

BLE custom characteristics values are getting reset on a board power cycle in NRF52832

Hi,


I am working on NRF52832 board in segger embedded studio. I am using nrf SDK 15.0.0.

I have created BLE custom characteristics and using nrfConnect mobile app to communicate with the Nordic board. On a power cycle, the custom characteristics values are getting reset. Can you please guide me on how to use a non-volatile storage and use the softe device APIs so that the custom characteristics can be restored with the previous values on a power cycle.

It would be nice if you suggest me any SDK example code for this case so that I can refer to it.

Parents Reply
  • Hi,
    I am trying to use sd_ble_gatts_value_set() as a part of on_connect() function. on_connect() will be called when any android phone is attempting to connect to the server. 

    I am using sd_ble_gatts_value_set() and assigned the gatt_value from flash memory, so that the handle will be getting the value even after power cycle. But I am getting NRF_ERROR_INVALID_ADDR error after sd_ble_gatts_value_set() function.

    What can be the reason. Please help and please heads up if my understading about the sd_ble_gatts_value_set() is wrong or not.

Children
Related