cancel
Showing results for 
Search instead for 
Did you mean: 

How to Actively Disconnect Bluetooth Connection of Mobile Phone?

zhangtinglu
Associate III

When STM32WB is used as slave device, how to actively disconnect Bluetooth connection of mobile phone?

11 REPLIES 11
RPowe.9.306
Associate III

I use aci_gap_terminate with the correct connection handle and the reason 0x13 (Remote User Terminated Connection). The connection drops (ST BLE Sensor states: "Error during the connection with the node HRSTM). However I don't get an HCI_DISCONNECTION_COMPLETE_EVENT event. Stepping through, aci_gap_terminate hags on calling hci_send_req!!!

RPowe.9.306
Associate III

*hangs