A2DP Sink auto-reconnect on startup (like commercial BT speakers/headphones) using esp-idf a2dp_gatts_coex example
Posted: Mon Aug 04, 2025 12:25 pm
Hi everyone,
I’m developing a Bluetooth speaker with the ESP32 using the official esp-idf a2dp_gatts_coex example (A2DP Sink + BLE GATT Server).
I would like to achieve the same behaviour as commercial Bluetooth speakers or headphones:
When the ESP32 powers on, it should automatically try to reconnect to the last paired and connected source device (phone, tablet, etc.) without any user action on the phone.
Is it possible to achieve true automatic reconnection (like commercial speakers/headphones) using only the official ESP-IDF stack and the A2DP Sink profile?
Are there any known limitations in the ESP-IDF stack for this behaviour?
Any advice to improve the auto-reconnect experience?
Thanks in advance for any suggestions or shared experiences!
I’m developing a Bluetooth speaker with the ESP32 using the official esp-idf a2dp_gatts_coex example (A2DP Sink + BLE GATT Server).
I would like to achieve the same behaviour as commercial Bluetooth speakers or headphones:
When the ESP32 powers on, it should automatically try to reconnect to the last paired and connected source device (phone, tablet, etc.) without any user action on the phone.
Is it possible to achieve true automatic reconnection (like commercial speakers/headphones) using only the official ESP-IDF stack and the A2DP Sink profile?
Are there any known limitations in the ESP-IDF stack for this behaviour?
Any advice to improve the auto-reconnect experience?
Thanks in advance for any suggestions or shared experiences!