The BLE Device Disconnection not working on UWP C#

Manickavasagam C 0 Reputation points
2023-09-01T15:08:57.4233333+00:00

Hello folks,
I'm developing a UWP Application using a C# for establishing the connection between BLE devices like Connect, Read, Write, and Disconnect for that we using a "Windows.Devices.Bluetooth". 

I'd successfully completed a few operations like connect, Read, and Write. But when I'm trying to disconnect that connected BLE Device, It does not disconnect the device properly, It takes more than 1.5 - 2 mins. Yeah, I had unsubscribed the notification so the data that we are receiving from the BLE Device was stopped. So, that is not a problem. 

The only issue should be that the device not disconnecting from the system.
For Example:
connected_device.Dispose();

If anyone has a solution for this issue, please help me.
Thanks in advance!

Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,819 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,400 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.