2015-11-24 175 views
3

我正在开发一个需要Windows通用应用程序与BLE设备通信的项目。我正试图找到一种方法,可以看到如何扫描,配对和发送/接收数据。Windows通用应用程序蓝牙低功耗连接

+0

你想知道如何具体访问蓝牙低能量协议(如,在默认的方法使用旧的高能量协议)? – TheHansinator

+0

我想知道如何扫描,连接,断开连接并从传感器获取数据。 –

回答

2

Windows.Devices.Enumeration命名空间可被用于通过DeviceInformation配对的设备。 PairingPairAsyncWindows.Devices.Bluetooth命名空间可用于连接和广告

有关配对概述,请参阅MSDN的Pair devices文档。 有关RFCOMM,GATTand LE广告的概述,请参阅MDSN的Bluetooth页面。

GATT docs通过检索蓝牙LE数据和控制LE设备。

Bluetooth advertisement sample演示了从前台和后台观看和发布LE广告。

还检查了构建2015年会议Building Compelling Bluetooth Apps in Windows 10