I'm trying to write an application that gets the addresses of any bluetooth devices in range, no pairing or any transfer, just want the address that's all. Any advice where to start?
Many thanks ..
I'm trying to write an application that gets the addresses of any bluetooth devices in range, no pairing or any transfer, just want the address that's all. Any advice where to start?
Many thanks ..
Google turned up this:
BluetoothRadio.PrimaryRadio.Mode = RadioMode.Connectable;
BluetoothClient client = new BluetoothClient();
BluetoothDeviceInfo[] devices = client.DiscoverDevices();
foreach (BluetoothDeviceInfo device in devices)
{
Console.WriteLine(device.DeviceAddress);
}
Never mind, I found a couple of questions here on SO
http://stackoverflow.com/questions/144862/bluetooth-apis-in-windows-net
http://stackoverflow.com/questions/1057220/bluetooth-in-c-which-stack-which-sdk
Which helped me finally find this: