32feet icon indicating copy to clipboard operation
32feet copied to clipboard

How to see if device is already paired?

Open FoxDawg opened this issue 3 years ago • 2 comments

I'd like to suggest an enhancement. I am currently prototyping the connection of BluetoothLe devices and would like to only try to connect to devices that are already paired. I did not find the functionality yet, so I was wondering, if the pairing state could be made available in the BluetoothDevice, e.g., by making the DeviceInformationPairing publicly available.

grafik

Cheers, Dennis

FoxDawg avatar Aug 27 '21 08:08 FoxDawg

You can call the method GetPairedDevicesAsync to quickly return just paired devices without doing a discovery. I agree that exposing the paired state would also be useful.

peterfoot avatar Aug 27 '21 10:08 peterfoot

Peter, thanks for pointing me in the right direction. During runtime that information would still be useful, though.

FoxDawg avatar Aug 27 '21 12:08 FoxDawg