I can't connect to a Bluetooth LE Device using c++ Win32 API

nzr 20 Reputation points
2024-02-27T11:28:17.07+00:00

I can't connect to a Bluetooth LE Device using c++ Win32 API - Visual Studio 2019 (v142). A few years ago there was a working Example at MSDN, but today the code doesn't work anymore. https://gist.github.com/programmarchy/c9d02e22d58bfab3f8bb seems to be the new source, but same Problem. BluetoothGATTGetDescriptorValue always returns ERROR_INVALID_FUNCTION. BluetoothGATTGetDescriptors or BluetoothGATTGetServices are working as expected. Fullowing link has sadly been deleted: https://social.msdn.microsoft.com/Forums/en-US/bad452cb-4fc2-4a86-9b60-070b43577cc9/is-there-a-simple-example-desktop-programming-c-for-bluetooth-low-energy-devices?forum=wdk

Windows development Windows API - Win32
Developer technologies C++
{count} votes

Accepted answer
  1. Viorel 122.5K Reputation points
    2024-02-27T12:01:23.2666667+00:00
    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.