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

calling pm_peers_delete cause fatal error

calling pm_peers_delete cause fatal error

why does it happened?

nRF5_SDK_17.0.2_d674dde/ble_app_multirole_lesc

Parents Reply
  • OK, it could be that underlaying function sd_ble_gap_adv_start() that also returns  NRF_ERROR_INVALID_STATE      

    * @retval ::NRF_ERROR_INVALID_STATE      adv_handle is not configured or already advertising.

    2 delete_bonds could perhaps trigger this.

    Try to remove the first call to delete_bonds().

    If you want to "force" delete_bonds to be called, then set erase_bonds= true instead

Children
Related