Hi,
We are using Dialog DA14580 in a peripheral role. It is connected to a external MCU over UART. The MCU manages the GATT database. So, there are cases during which, the MCU sends a request over UART to disconnect the BLE link. Which API should be used in that case?
I browsed the SDK and found app_disconnect_op() API. Is this the right function? Can I use this from the application?
If not, what is the right way to initiate disconnect request from the peripheral application.
Note: We are not using any standard profiles or custom profiles provided by Dialog SDK
Thanks,
Hrishikesh
Device:
Hi dhrishi,
Yes this is the proper function to use, the command uses the GAPC_DISCONNECT_CMD message in order to instruct a disconnect from the application level.
Thanks MT_dialog
谢谢你的回答。它帮助