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

Receiving internal error on securing BLE link

At the moment I am working on a project that uses the nRF52328 acting as both a peripheral and central to connect 3 separate devices intermittently. I am storing their bonding information. A current problem I have now is that, due to an inconvenience with one of the devices, I have to create a new peer upon every connection. However, I noticed that whenever the number of peers exceeds PM_PEER_ID_N_AVAILABLE_IDS (from peer_manager_types.h) I receive NRF_ERROR_INTERNAL error code when I try to secure a link for the next device.

I tried deleting the old peer ids to make space but that doesn't seem to reduce the number of valid peers returned by pm_n_peers(). Running garbage collection when the memory is full also doesn't seem to resolve this. Is there anyway to solve this issue?

Edit: I notice that when the nrf52328 is reset /powered off and then on, pm_n_peers() returns the expected number of peers. i.e not including the deleted peers.

Related