简体   繁体   English

如何在 Windows 10 通用应用程序上获取配对的蓝牙设备列表

[英]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.

相关问题 获取蓝牙Windows Phone 8上的可用设备列表 - Get list of available devices on bluetooth Windows Phone 8 如何在不使用设置应用程序的情况下在Windows 10平板电脑应用程序中发现未配对的蓝牙设备 - How to discover unpaired Bluetooth devices in a Windows 10 tablet application without using the settings app 获取Windows 10上已连接的蓝牙设备的列表 - Getting a list of already connected bluetooth devices on Windows 10 如何在Windows 10 UWP中丢失连接后以编程方式连接到配对的蓝牙设备 - How to programmatically connect to paired Bluetooth device once connection is lost in Windows 10 UWP C#,蓝牙获得所有范围内的配对不可发现的设备 - c#, Bluetooth get all in range paired undiscoverable devices 如何在Windows Universal应用程序(Windows 10)中的markdowntextblock中设置聊天对话的格式 - How to format chat conversations in markdowntextblock in Windows Universal application (windows 10) 使用 Windows.Devices.Bluetooth 命名空间是否需要通用 Windows 平台? - Is Universal Windows Platform required to use the Windows.Devices.Bluetooth namespace? 如何使用 Windows 10 通用应用程序中的 isTypePresent 检测相机是否可用 - How to detect is a camera is available using isTypePresent in a Windows 10 Universal Application Windows 10 Universal中的Windows.Devices.Custom.IOControlCode - Windows.Devices.Custom.IOControlCode in Windows 10 Universal 如何获取MapElement的点击类型(MapControl)(Windows 10通用应用程序) - How to get MapElement tapped type (MapControl) (Windows 10 universal app)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM