问题
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