Search and Connect to Bluetooth device in Windows 8/8.1 Store apps?

孤人 提交于 2019-12-09 19:36:36

问题


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.

What I have done so far:

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.

Thanks


回答1:


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().



来源:https://stackoverflow.com/questions/21232205/search-and-connect-to-bluetooth-device-in-windows-8-8-1-store-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!