locked
[W8.1]How to disconnects an established connection?

    Question

  • When I have connected my app to a Bluetooth LE device, how can I disconnect the connection.

    It seems there is not such API in Windows.Devices.Bluetooth namespace.

    Can I close a connection by code just like what I do in the system bluetooth settings page of Windows Phone?

    Saturday, May 2, 2015 2:59 AM

Answers

  • The API doesn't expose such functionality to programmatically connect to or disconnect from a Bluetooth device. The user should always be in control and needs to make the decision whether or not to enable Bluetooth or connect/disconnect from a particular Bluetooth device.

    Abdulwahab Suleiman

    Sunday, May 3, 2015 1:24 AM
    Moderator