arduino-audio-tools
arduino-audio-tools copied to clipboard
Question about Esp32 using WIFI and BLUETOOTH at same time
Hello, your tools are really interesting and useful!!
I trying to develop a esp32 webradio bluetooth sender, so my question is: Is it possible to receive mp3 stream from internet and retransmit it with the a2dp lib?
I tried to change base-file_mp3-a2dp, but I got some errors with T result = 0; I'm using the lastest esp32 version (arduino IDE).
Thanks ;)
Unfortunately you can not use Bluetooth and WIFI at the same time on a ESP32.
That is a big shame, but ... one could use two ESP32s and transport the data via a wire I guess? I2S was developed for that by Philips in the first CD-Players, if I am not mistaken. Very impressed with your library, impressive documentation as well. Woow. !
Yes, you could connect them via I2S...
I have a project where I use bluetoothLE and wifi in to one project. I don't use them at the same time but they are in it and it works. But with wifi streams I don't know, You can't mis a thing... right? Therefore you need too delay the internet connection, and first send all available data too the spreaker. Then the buffer is empty so you could fill him again. What the wifi concerns... its like having a bad internet connection. It also works with buffers so you would have some time to do the bluetooth part.
I tried to add a bluetooth ble with the audiotools, but it diden't work. Is there a chance to send wifi command when the music is not playing?
See https://github.com/pschatzmann/ESP32-A2DP/wiki/WIFI-and-A2DP-Coexistence