Generate Disconnect Request from peripheral

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
dhrishi
Offline
Last seen:3 years 3 months ago
加入:2017-02-10 09:56
Generate Disconnect Request from peripheral

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:
MT_dialog
Offline
Last seen:2 months 4 weeks ago
工作人员
加入:2015-06-08 11:34
Hi dhrishi,

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

dhrishi
Offline
Last seen:3 years 3 months ago
加入:2017-02-10 09:56
谢谢你的回答。It

谢谢你的回答。它帮助