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,

    I called bt_conn_disconnect() from the main loop on the peripheral. It was not with a sample, a custom application.

    The central is a Windows PC. Not able to test out the peripheral/central uart i'm afraid.

    The disconnect callback DOES get called if I turn the Bluetooth on the Central off. But it does not trigger when calling bt_conn_disconnect  from the NRF52 Peripheral

Children
Related