cancel
Showing results for 
Search instead for 
Did you mean: 

How to terminate a BLE connection from a central device (STM32WB) to a peripheral device (ble device)?

Cchn.1
Associate II

when we design a ble central device ,which is an stm32wb55mcu , we are confused how to terminate a BLE connection.

the api "hci_disconnect()" "aci_gap_terminate()" seems likes for the peripheral device. And when i call it , it blocked and not return.

looking forward to your reply, and thanks for the help!

1 REPLY 1
Cchn.1
Associate II

ok,the problem has been sovled.

it is the matter that ble api must not be called in interrupt contex.