ESP32 Web Radio and Bluetooth Speaker Mode

vibnwis
Posts: 89
Joined: Thu Aug 24, 2017 1:13 am

ESP32 Web Radio and Bluetooth Speaker Mode

Postby vibnwis » Thu Jan 18, 2018 11:08 am

Hi there,
I would like to have Web Radio and Bluetooth Speaker mode in a single system. A GPIO button will be used to select between the two, i.e only one is running at any time. The algorithms I would use as below. However, please feel free to comment. I presume by enabling Bluetooth Speaker mode and setting up the WiFI credential will make both binaries available for users.

if WebRadio is set
Deinit BlueTooth
init WiFi hardware
Establish WiFI connection
Get url of station
play incoming data stream
else
Deinit WiFi hardware
init Bluetooth
Establish Bluetooth connectin
play incoming data stream

Any advise or comment, please?

Best regards
vibnwis

Who is online

Users browsing this forum: No registered users and 41 guests