gpt4 book ai didi

Windows 10 无需配对即可连接到蓝牙经典设备

转载 作者:可可西里 更新时间:2023-11-01 13:26:29 25 4
gpt4 key购买 nike

根据微软的最新文档:

Do I have to pair Bluetooth devices before using them? You don't have to for Bluetooth RFCOMM (classic) devices. Starting with Windows 10 release 1607, you can simply query for nearby devices and connect to them. The updated RFCOMM Chat Sample shows this functionality.

但是,当我尝试使用此聊天示例连接到我的设备时,我收到一条通知,要求我“设置设备”,就像我正在进行正常的配对过程一样。

我错过了什么吗?

我从示例中更改的代码片段:

var rfcommServices = await bluetoothDevice.GetRfcommServicesAsync(BluetoothCacheMode.Uncached);

最佳答案

取自msdn resources :

Windows 10 Mobile is currently limited to connections with only paired devices. In Windows 10, you can programmatically pair/unpair. See scenarios 8 and 9:

https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/DeviceEnumerationAndPairing

Here’s is the related MSDN documentation on pairing and the relevant device selectors for enumeration.

https://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.enumeration.deviceinformationpairing.aspx

https://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.bluetooth.bluetoothdevice.aspx

但我也知道您可以在较低级别使用直接蓝牙连接,这样 Windows 就不会建议您配对。例如,这就是 32feet.net 库的工作方式,在 this answer 中讨论。 (我使用过它并且它很好,但是它目前不受支持所以请小心)。

关于Windows 10 无需配对即可连接到蓝牙经典设备,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47781638/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com