我一直在寻找如何在Windows 10通用应用程序中获取已配对的蓝牙设备的列表,但没有发现任何东西。有关如何在Windows 8.1应用程序上执行操作的信息很多,但没有一种解决方案适用于Windows 10 Universal App。
我自己找到了答案。在UWA中,非常容易获得配对的蓝牙设备。这是代码片段:
var selector = BluetoothDevice.GetDeviceSelector();
var devices = await DeviceInformation.FindAllAsync(selector);
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句