Support for MAC address in place of device name in BluetoothA2DPSource's start()/start_raw() functions? #567
-
Hey @pschatzmann, First off, just wanted to say thanks a million! I'm developing my own Bluetooth MP3 (okay, really PCM haha...) player using a ESP32 Pico D4; there's not a lot out there in the way of such a venture, so when I found this project I was overjoyed. I just tested out the BluetoothA2DPSource class and can successfully connect to my slave devices and send tones to them. In doing so, I had a question, though––would you consider adding support to allow the user to supply the Bluetooth device's MAC address in the start() and start_raw() functions in lieu of the device name? Things can get tricky with the name if: 1) there are multiple devices with the same name, or 2) the device name is empty. I'm happy to help with this––I've been reviewing your source code, and while such a feature would require a fair number of changes, I think it can be implemented. In any case, just thought I'd throw the idea out there to get thoughts from a group of people much smarter than I. Thanks again! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Just have a look at the documentation: this scenario is already supported with the help of a callback Here is the corresponding example! |
Beta Was this translation helpful? Give feedback.
Just have a look at the documentation: this scenario is already supported with the help of a callback
Here is the corresponding example!