cancel
Showing results for 
Search instead for 
Did you mean: 

How to actively terminate a BLE connection from a peripheral device (STM32WB) to a central device (Android or iOS)?

TomC
Senior

I have identified from this post and AN5270 that ACI_GAP_TERMINATE and HCI_DISCONNECT may be viable functions to call from a peripheral device to terminate a BLE connection. My employment of these functions causes no change, similarly use of ACI_GAP_SET_NON_DISCOVERABLE has no effect on whether or not my peripheral (STM32WB) continues advertising.

Furthermore I'm unsure of how to extract the connection handle that I need to pass to ACI_GAP_TERMINATE or HCI_DISCONNECT as a parameter and have assumed its value to be 0 as I have only one connection. I have tried overriding HCI_LE_CONNECTION_COMPLETE_EVENT to extract the connection handle however it doesn't seem to get called at all, even when a successful connection between STM32WB and Phone Application are made.

0 REPLIES 0