[英]How to get list of paired bluetooth devices on Windows 10 Universal Application
I was looking how to get list of paired bluetooth devices in Windows 10 Universal Application and didn't found anything.我正在寻找如何在 Windows 10 通用应用程序中获取配对蓝牙设备的列表,但没有找到任何东西。 There were a lot of info how to do it on Windows 8.1 application, but none of the solutions work for Windows 10 Universal App.
有很多关于如何在 Windows 8.1 应用程序上执行此操作的信息,但没有一个解决方案适用于 Windows 10 通用应用程序。
I've found the answer by myself.我自己找到了答案。 In UWA it is very easy to get paired bluetooth devices.
在西澳大学,很容易获得配对的蓝牙设备。 Here is the code snippet:
这是代码片段:
var selector = BluetoothDevice.GetDeviceSelector();
var devices = await DeviceInformation.FindAllAsync(selector);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.