TheWeirdDev / Bluetooth_Headset_Battery_Level

A python script to get battery level from Bluetooth headsets
GNU General Public License v3.0
766 stars 80 forks source link

Fixed detecting not present/unknown battery level for FastPair #96

Closed steam3d closed 7 months ago

steam3d commented 7 months ago

The zero ordinal bit must be ignored, since it is responsible for charging status. The battery, not present or unknown on when 1-7 bits are units.

Source: https://developers.google.com/nearby/fast-pair/specifications/extensions/batterynotification

image

TheWeirdDev commented 7 months ago

Seems correct. Thank you.