I have a problem with Bluetooth pairing in the windows UWP device driver. I am currently on a windows 10 (Build 10240) computer and I use a vs2015. I create a device watcher with a (custom)selector to get paired and unpaired Bluetooth devices. I get all the Bluetooth devices in range. When i try to get the DeviceInformationCustomPairing of a device by the Pairing Property the pairing property is always null.
private void DeviceWatcher_EnumerationCompleted(DeviceWatcher sender, object args)
{
var device = devices.Where(x => x?.Name != null && x.Name == name).FirstOrDefault();
if (device != null)
{
DeviceInformationCustomPairing customPairing = device.Pairing.Custom;