How to disable bluetooth A2DP sink's auto reconnect?
Posted: 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!
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!