How to get the battery level of Bluetooth devices by C++ and windows API?

renmale-lv 0 Reputation points
2023-04-11T05:49:32.82+00:00

Now, I can get the connection information and address of the Bluetooth device, which APIs can I call to get the battery level and device photo of the Bluetooth device?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,812 questions
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,448 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,562 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 11,581 Reputation points Microsoft Vendor
    2023-04-12T02:47:36.6866667+00:00

    Hello,

    Welcome to Microsoft Q&A!

    As Bluetooth and read or write operations said and the Bluetooth Connection (BthCxn) Sample showed, you can connect between two remote bluetooth devices and transfer such data between them.

    Thank you.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments