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

peer_manager with a given passkey

Hello,

For some industrial reasons, I need to store the passkey in the flash of the nRF5 during production and retrieve it at run-time.

I would like to know if there is a way to use the passkey stored in the flash with the peer_manager module ?

Kind regards. Patrice

  • It should be possible, provided that you store it in a format that Peer Manager understands, and you store it where the Peer Manager expects to find it. The latter depends on whether or not you have a bootloader and on the IC you are using (nRF51 or nRF52).

    Basically you'd have to initialize two flash pages, at least, in FDS format (one for data and one for the swap), and write the data there with a hand-crafted header.

    (FDS is the library which handles Peer Manager data in flash).

    E

  • Hello everyone,

    By using a bee_opt_t structure, it's possible to give a specific passkey to the peer_manager. And it's all I need.

    Kind regards

Related