bluekitchen / btstack

Dual-mode Bluetooth stack, with small memory footprint.
http://bluekitchen-gmbh.com
Other
1.74k stars 618 forks source link

example/hfp_ag_demo: add an example for custom AT command #589

Open weigangw opened 7 months ago

weigangw commented 7 months ago

I find almost every headphones of my own uses Apple's private AT command to report battery level and battery-charging status.

So I write a small module for adding custom AT command in hfp ag demo, and use AT+IPHONEACCEV as an example.

mringwal commented 7 months ago

Thanks for the PR. You're totally right, that most headphones will support Apple's private but well documented AT Commands for Battery & Battery Charging. I think it would be better to just add it to the HFP AG profile and report the values via new events. I'll leave this PR open until then.

mringwal commented 4 months ago

Sorry for the delay. We have implemented support for Apple's HFP AT Command extensions.

Could you check develop branch if that works for you?