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!
How to disable bluetooth A2DP sink's auto reconnect?
Re: How to disable bluetooth A2DP sink's auto reconnect?
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?
can anyone help me?
Who is online
Users browsing this forum: No registered users and 107 guests