TheWeirdDev / Bluetooth_Headset_Battery_Level

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

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

Closed steam3d closed 2 months ago

steam3d commented 2 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 2 months ago

Seems correct. Thank you.