我正在尝试通过蓝牙连接到血压机。该设备已与我的笔记本电脑配对。当我在 TheNet 中使用 nuget 包时。我可以获取附近的设备列表,但无法获取已配对的设备
string macAddress = FindMACAddress();
_blueToothEndPoint = new BluetoothEndPoint(BluetoothAddress.Parse(macAddress), BluetoothService.BluetoothBase);
_blueToothClient = new BluetoothClient(_blueToothEndPoint);
BluetoothDeviceInfo[] devices = _blueToothClient.DiscoverDevices();
foreach (BluetoothDeviceInfo device in devices)
{
Console.WriteLine(device.DeviceAddress);
}