Windows 8 Bluetooth Low Energy API example

浪子不回头ぞ 提交于 2019-12-10 10:18:00

问题


Has anyone found a good example of how to discover, connect, and disconnect BLE devices on Windows 8 using C/C++?

I'm not sure how to get a device handle to use with the "Bluetooth Low Energy Functions" API http://msdn.microsoft.com/en-us/library/windows/hardware/hh450825(v=vs.85).aspx


回答1:


The Windows 8 Bluetooth GATT apis requires that the device be paired using the built-in UI and does not allow application to connect to an arbitrary Bluetooth LE device.

Source: MSDN Forum




回答2:


MSDN has code samples(Windows 8+) on interfacing different BLE devices using either one the predefined Bluetooth SIG profiles (blood pressure, heart rate, thermometer) or the Texas Instruments CC2540 Mini development kit).

I don't know whether it is good or not but it looks quite comprehensive: http://code.msdn.microsoft.com/windowsdesktop/Bluetooth-Generic-4f4ea968



来源:https://stackoverflow.com/questions/16952487/windows-8-bluetooth-low-energy-api-example

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