2009-08-11 170 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

相關問題