This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

pstorage API usage

Hey Nordic, I am using the nrf51 to operate a sensor and send data wirelessly. I want to store the id of the sensor in the flash memory and I Understand that a good way to do so is to use pstorage API. I have been through plenty of exmaples and have red the documentatin but I still have simple questions unanswered as I still cant get my simiple app to run.
The questions are as follow:

  1. should I load the softdevice before I am able to use pstorage API
  2. is there a complete example which is only focussed on showing how presistant storage works. There are plenty of exmpales out there but all of them are not focussed on pstorage only as they also include BLE and other APIs which can be comfusing for someone who is only starting with pstorage and does not want to use it along with BLE.

Thank you in advance Ryan.

  • Could you clarify, do you want to use pstorage without BLE, or do you want an example with pstorage without BLE?

  • yes. am not intending to use BLE at the moment. am using Gazell for my communication so far. I have red a similar question on this forums which was answered as that pstorage can not be used without a sofdevice. the first part of my question is thereofore answered. However, I still want to use pstorage and install the softdevice but not use ble stacks. an example of this done would be much appreciated.

  • The API is finally working for me :)

    I used the ble_template example and built up upon it. Also, softdevice has to be installed. an example of using pstorage without BLE is still going to be useful for other users.

    Thanks a lot

Related