获取蓝牙设备的地址
我正在尝试编写一个应用程序来获取范围内的任何蓝牙设备的地址,没有配对或任何传输,只需要所有地址。 有什么建议从哪里开始?
非常感谢 ..
谷歌出现了这个:
BluetoothRadio.PrimaryRadio.Mode = RadioMode.Connectable; BluetoothClient client = new BluetoothClient(); BluetoothDeviceInfo[] devices = client.DiscoverDevices(); foreach (BluetoothDeviceInfo device in devices) { Console.WriteLine(device.DeviceAddress); }
没关系,我在这里发现了几个问题
Windows / .Net中的蓝牙API?
C#中的蓝牙,哪个堆栈,哪个SDK?
这让我终于找到了这个: