How to disable bluetooth A2DP sink's auto reconnect?

adherent
Posts: 19
Joined: Mon Jan 15, 2018 9:24 pm

How to disable bluetooth A2DP sink's auto reconnect?

Postby adherent » Sat May 12, 2018 9:37 pm

I use ESP32 as A2DP SRC, after I press button 1, it will do the discovery, find one A2DP sink and create the connection. If I press button 2 , it will first disconnect the previous connection and try to connect 2nd A2DP sink. In this way I can choose a certain Sink to send certain audio.

The implementation is done, so far so good, until I found this issue:

the A2DP Sink device(in my case headset) always tries to auto reconnect to the last connected Source. A certain listener deep inside bluedroid is triggered and somehow the Sink is connected. If I turns on the 2nd Headset, same stuff happened. So from outside I have no chance to control which Headset to select.

So my question would be:

How can I disable the auto-reconnect initiated from Sink side? Or somehow let the ESP32 Source to drop the auto-reconnect request from Sink?

Thanks a lot!

esprima
Posts: 7
Joined: Wed Oct 28, 2020 2:52 pm

Re: How to disable bluetooth A2DP sink's auto reconnect?

Postby esprima » Tue Mar 09, 2021 12:37 pm

Hi. I have problem with sink side (ESP32 in sink side). I want to auto connect with smartphone. but esp is not auto connect with paired device.

can anyone help me?

Who is online

Users browsing this forum: No registered users and 102 guests