Hi,
Thank you for posting your query.
Kindly follow the steps provided below to resolve your issue.
This article demonstrates usage of the Bluetooth Generic Attribute (GATT) Client APIs for Universal Windows Platform (UWP) apps, along with sample code for common GATT client tasks:
Query for nearby devices
Connect to device
Enumerate the supported services and characteristics of the device
Read and write to a characteristic
Subscribe for notifications when characteristic value changes
Important
You must declare the "bluetooth" capability in Package.appxmanifest.
<Capabilities> <DeviceCapability Name="bluetooth" /> </Capabilities>
Important APIs
Windows.Devices.Bluetooth
Windows.Devices.Bluetooth.GenericAttributeProfile
Go to this link for your reference https://learn.microsoft.com/en-us/windows/uwp/devices-sensors/gatt-client
------------------------------------------------------------------------------------------------------------------------------------------
If the answer is helpful kindly click "Accept as Answer" and upvote it. Thanks.