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
  • Hi Petter, sorry for the delete.

    I delete the bonding information with err_code = pm_peers_delete();

    maybe can be the problem that i delete the bonding information when i am connected? i after the delete peer call the

      uint32_t err_code;
          
    err_code = sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
      return err_code;
    

    Thanks, Anna

Reply
  • Hi Petter, sorry for the delete.

    I delete the bonding information with err_code = pm_peers_delete();

    maybe can be the problem that i delete the bonding information when i am connected? i after the delete peer call the

      uint32_t err_code;
          
    err_code = sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
      return err_code;
    

    Thanks, Anna

Children
No Data
Related