I need to get connected Bluetooth device's property in Windows via C#. And I find this post:
Getting a list of already connected bluetooth devices on Windows 10
The code it mentioned is:
//Connected bluetooth devices
DeviceInformationCollection ConnectedBluetoothDevices =
await DeviceInformation.FindAllAsync(BluetoothDevice.GetDeviceSelectorFromConnectionStatus(BluetoothConnectionStatus.Connected));
But when running the code, I get below exception. It seems that this method cannot be used any more.
Any advise?