bt_conn_disconnect does not result in .disconnect callback

NCS3.0.0 , NRF52840

calling bt_conn_disconnect does not result in the disconnect callback being called.

the conn state seems to be stuck in BT_CONN_DISCONNECTING. I have to manually run a private function 'bt_conn_cleanup_all()' which results in the CB being called.

How can I get the disconnect callback to be called after calling the bt_conn_disconnect?

Thanks!

Parents Reply
  • Hi Adrian, 
    Could you try to put a delay between the mpsl_lib_uninit() and mpsl_lib_init() ? Say 100ms. 
    It takes some time for the crystal to re-initialize.  
    Could you give some more info why you want to reinitalize mpsl ? After the reinitialization how do you initialize BLE ? 
    Can you reproduce the issue with a sample by adding mpsl_lib_uninit(), mpsl_lib_init() in 

Children
Related