ESP32 A2DP Sink - name of connected source?
-
- Posts: 4
- Joined: Thu Nov 18, 2021 8:32 pm
ESP32 A2DP Sink - name of connected source?
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?
-
- Posts: 4
- Joined: Thu Nov 18, 2021 8:32 pm
Re: ESP32 A2DP Sink - name of connected source?
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?
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?
-
- Posts: 4
- Joined: Thu Nov 18, 2021 8:32 pm
Re: ESP32 A2DP Sink - name of connected source?
I did get it to work. Make sure you check the "stat" field being 0 in the callback param before trusting the result.
Who is online
Users browsing this forum: axellin and 97 guests