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.
11,195 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,523 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,636 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,231 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