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!

Developer technologies | Universal Windows Platform (UWP)
Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | C#
{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.