Skip to content

Commit

Permalink
update CIND response
Browse files Browse the repository at this point in the history
Plantronics Focus headset timeouts when the CIND just includes battchg indicator.

The indicators added in this commit are based on those observed from some Android connections with a different set of headsets.
  • Loading branch information
delaosa committed May 11, 2022
1 parent 4f49f75 commit 4cfe9a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bluetooth_battery.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def _perform_query(self) -> int:
sock.send(b"+BRSF: 1024")
sock.send(b"OK")
elif b"CIND=" in line:
sock.send(b"+CIND: (\"battchg\",(0-5))")
sock.send(b"+CIND:(\"service\",(0-1)),(\"call\",(0-1)),(\"callsetup\",(0-3)),(\"callheld\",(0-2)),(\"battchg\",(0-5))")
sock.send(b"OK")
elif b"CIND?" in line:
sock.send(b"+CIND: 5")
sock.send(b"+CIND: 0,0,0,0,3")
sock.send(b"OK")
elif b"BIND=?" in line:
# Announce that we support the battery level HF indicator
Expand Down

0 comments on commit 4cfe9a4

Please sign in to comment.