Hi

How do I know what Bluetooth device i connect now with my code ?

I try next code but it's not working

PeerFinder.AlternateIdentities["Bluetooth:Paired"] = "";
IReadOnlyList<PeerInformation> pairedDevices;
pairedDevices = await PeerFinder.FindAllPeersAsync();

for (int i = 0; i < pairedDevices.Count; i++)
{
PeerInformation selectedDevice = pairedDevices[i];
try
{

StreamSocket socket = new StreamSocket();
socket.ConnectAsync(selectedDevice.HostName, "1");
MessageBox.Show("Connected - > " + selectedDevice.DisplayName);
}
catch (Exception ex)
{
MessageBox.Show("Not connected - > " + selectedDevice.DisplayName);
}
}


Regards
Alex