2009-08-11 173 views
0

我正在尝试编写一个应用程序,它可以获取任何蓝牙设备的地址范围,无需配对或任何传输,只需要所有的地址即可。任何建议从哪里开始?获取蓝牙设备的地址

非常感谢..

回答

2

Google打开了这一点:

BluetoothRadio.PrimaryRadio.Mode = RadioMode.Connectable; 
BluetoothClient client = new BluetoothClient(); 
BluetoothDeviceInfo[] devices = client.DiscoverDevices(); 
foreach (BluetoothDeviceInfo device in devices) 
{ 
    Console.WriteLine(device.DeviceAddress); 
} 
+0

感谢您的帮助了蓝牙新手 – 2009-08-11 04:20:20

+0

嗯,我会问,你发现代码?我在谷歌搜索该代码,并得到了SO的问题页面。 Google只返回由第三方公司编写的蓝牙组件的页面,是否有Microsoft的蓝牙SDK for .NET? – 2009-08-11 04:32:55

+0

有关记录,该代码似乎是使用优秀的InTheHand蓝牙库。 – codekaizen 2009-08-11 04:59:11

相关问题