question

nulijiacanfan avatar image
1 Vote"
nulijiacanfan asked ·

Is there any way can get the bluetooth battery level information?

In the windows 10 2004, We can get the bluetooth device current battery level in Settings->Devices->Bluetooth & other devices.

9238-check-bluetooth-device-battery-level-windows-10.jpg



Is there any way for my UWP application to get this information? or WPF or any other code?

windows-uwp
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

yanxiaodi avatar image
0 Votes"
yanxiaodi answered ·

Hi, here is the documents regarding the bluetooth in UWP:

Hope these documents would be helpful. Thanks.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I think bluetooth in UWP API can not do this things.

0 Votes 0 ·
mrlacey avatar image
0 Votes"
mrlacey answered ·

This official sample includes retrieving battery level information of Bluetooth devices.


· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm sorry it doesn't solve my problem. My bluetooth device is a headset, it's not a bluetooth LE device. The UWP Bluetooth GATT API is work for bluetooth LE device.

0 Votes 0 ·
NicoZhu-MSFT avatar image
0 Votes"
NicoZhu-MSFT answered ·

Hello,

Welcome come to Microsoft Q&A,

In the windows 10 2004, We can get the Bluetooth device current battery level in Settings->Devices->Bluetooth & other devices.

Unfortunately, UWP does not provide such APIs that could get such property. If you do want this feature, please feel free to post your requirement with the Windows Feedback hub app. You could find it in the Start Menu.

Thanks,

Nico Zhu

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.