Support For Bluetooth A2DP and HFP At The Same Time

besterm
Posts: 14
Joined: Tue Nov 12, 2019 1:44 pm

Support For Bluetooth A2DP and HFP At The Same Time

Postby besterm » Fri May 22, 2020 2:14 pm

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.

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

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

Postby chegewara » Fri May 22, 2020 3:52 pm

https://github.com/espressif/esp-adf/tr ... nk_and_hfp

To send battery level you can probably use AVRC command.

Who is online

Users browsing this forum: Google [Bot], KMTsvetanov, snutw_ and 116 guests