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

improved AT+XEVENT battery parsing #90

Closed steam3d closed 1 year ago

steam3d commented 1 year ago

I realized that at least Redmi AirDots sends AT+XEVENT with other data: AT+XEVENT=BATTERY,9

instead of data your expect like this: AT+XEVENT=BATTERY,6,11,461,0

Now the script no longer crashes and supports more headphones.