搜索并连接到蓝牙设备在Windows 8 / 8.1 Store应用程序? [英] Search and Connect to Bluetooth device in Windows 8/8.1 Store apps?

查看:150
本文介绍了搜索并连接到蓝牙设备在Windows 8 / 8.1 Store应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要搜索并连接到使用Windows商店应用蓝牙设备。
我使用XAML / C#和Windows 8.1。该器件支持RFCOMM。

I need to search and connect to a Bluetooth device using a Windows store app. I am using XAML/C# and Windows 8.1. The device supports RFCOMM.

我迄今所做的:

如果我配对的设备到我的系统,然后使用搜索设备

If I pair the device to my system and then search for the device using

var devicesInfoCollection = await DeviceInformation.FindAllAsync();

我得到的蓝牙设备,但有没有办法找到它时,仍没有配对的设备。

I get the Bluetooth Device, however is there a way to find the device when its still not paired.

感谢

推荐答案

有没有办法做到这一点(在Windows 8.1)。你必须先配对您的设备,否则由.FindAllAsync()返回的列表中提供的服务将不会出现。

There is no way to do that (in Windows 8.1). You have to pair your device first, otherwise the offered service won't show up in the list returned by .FindAllAsync().

这篇关于搜索并连接到蓝牙设备在Windows 8 / 8.1 Store应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆