How to connect with mac address instead off ssid name #598
-
I want to connect bluetooth audio from esp32 to tws device. but in the my factory use many same type of tws. can u help me? thanks BluetoothA2DPSource a2dp_source; void setup() { void loop() { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
At any point of time you can only be connected to one data sink only! If you want to connect to potentially different sinks, just look at the start method in the class documentation: you can provide a vector! The system then just connects to the first device in the vector that is available... You can achieve a similar result by defining an ssid_callback: there you just define a callback method where you define if you want to accept a connection based on the provided ssid and rssi. If the callback just returns true it connects to any device it finds first. |
Beta Was this translation helpful? Give feedback.
At any point of time you can only be connected to one data sink only!
If you want to connect to potentially different sinks, just look at the start method in the class documentation: you can provide a vector! The system then just connects to the first device in the vector that is available...
You can achieve a similar result by defining an ssid_callback: there you just define a callback method where you define if you want to accept a connection based on the provided ssid and rssi. If the callback just returns true it connects to any device it finds first.