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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,582 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,685 questions
{count} votes

Accepted answer
  1. Viorel 116.6K 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.