Page 1 of 1

Support For Bluetooth A2DP and HFP At The Same Time

Posted: Fri May 22, 2020 2:14 pm
by besterm
Is it possible to have both an A2DP and a HFP connection to a phone at the same time from the ESP32? I currently have firmware written that uses A2DP to stream audio to a speaker. I now need to be able to periodically send the speaker's battery level information back to the phone while audio is streaming. I believe the only way of doing this with BT classic using the HFP connection. This is the only feature that I require from the HFP. I don't want to stream any audio using HFP as the A2DP has much better sounding audio.

Re: Support For Bluetooth A2DP and HFP At The Same Time

Posted: Fri May 22, 2020 3:52 pm
by chegewara
https://github.com/espressif/esp-adf/tr ... nk_and_hfp

To send battery level you can probably use AVRC command.