ESP32 A2DP Sink - name of connected source?
Posted: Thu Nov 18, 2021 8:35 pm
by daiku_north
I'm running ESP32 as an A2DP sink. I am successfully streaming audio, and getting the track metadata (song, artist, etc), but I'd also like to discover the name of the device I'm connected to (like my phone, usually). Is there a way to get that?
Re: ESP32 A2DP Sink - name of connected source?
Posted: Tue Nov 30, 2021 4:39 pm
by daiku_north
I found this:
https://docs.espressif.com/projects/esp ... _bd_addr_t
But I can't get it to work. The data returned in the callback is gibberish, and varies over time. Is there an example of a successful implementation?
Re: ESP32 A2DP Sink - name of connected source?
Posted: Wed Dec 01, 2021 2:18 pm
by daiku_north
I did get it to work. Make sure you check the "stat" field being 0 in the callback param before trusting the result.