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

Bonding information issue when only one side the bonding is delete

Hi,

sometimes not always, the function peer_id_is_allocated return false and this causes an ASSERT of device, because a NRF_ERROR_INVALID_PARAM is returned by pdb_write_buf_get. And Peer_Manager return an assert.

Someone can help to me, why this happens?

Thanks, Anna

Parents
  • If pdb_write_buf_get() returns NRF_ERROR_INVALID_PARAM this should be the reason:

     * @retval NRF_ERROR_INVALID_PARAM  Data ID or Peer ID was invalid or unallocated, or n_bufs was 0
     *                                  or more than the total available buffers.
    

    Does this give you any useful hints to why you get this error? If not I think you need to include some more code, or maybe even your complete project, so I can try to reproduce.

Reply
  • If pdb_write_buf_get() returns NRF_ERROR_INVALID_PARAM this should be the reason:

     * @retval NRF_ERROR_INVALID_PARAM  Data ID or Peer ID was invalid or unallocated, or n_bufs was 0
     *                                  or more than the total available buffers.
    

    Does this give you any useful hints to why you get this error? If not I think you need to include some more code, or maybe even your complete project, so I can try to reproduce.

Children
No Data
Related