arduino-audio-tools icon indicating copy to clipboard operation
arduino-audio-tools copied to clipboard

Question about Esp32 using WIFI and BLUETOOTH at same time

Open akira-kun opened this issue 3 years ago • 5 comments

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 ;)

akira-kun avatar Jul 15 '21 13:07 akira-kun

Unfortunately you can not use Bluetooth and WIFI at the same time on a ESP32.

pschatzmann avatar Jul 15 '21 14:07 pschatzmann

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. !

pierreverbakel avatar Aug 28 '21 20:08 pierreverbakel

Yes, you could connect them via I2S...

pschatzmann avatar Aug 28 '21 20:08 pschatzmann

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.

podaen avatar Nov 03 '21 07:11 podaen

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?

podaen avatar Mar 13 '22 09:03 podaen

See https://github.com/pschatzmann/ESP32-A2DP/wiki/WIFI-and-A2DP-Coexistence

pschatzmann avatar Feb 13 '23 13:02 pschatzmann