Hello forum,
for a web radio applicaton I want to download track information from the radio station's website, because this information is not provided by the mp3 stream metadata.
My apporach is to work with an HTTP client object and the get() method, but unsurprisingly this takes around 2 seconds and interrupts the time critical shuffling of MP3 data towards the MP3 decoder module (VS1053).
I wonder if an ESP32 devboard with a few MB of SRAM could help to create an MP3 data buffer to cover the interruption caused by the HTTP GET. Could this potentially work ? Are there any other approaches ?
Thank you very much for any feedback!
HTTPClient get()
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: HTTPClient get()
Another approach would be to create a separate FreeRTOS task and do the http request in there, so it can run in parallel with the mp3 feeding task.
Re: HTTPClient get()
Thank you very much for pointing me to this field of RTOS programming!! I apologize for my very late reply. It took me some time to be able to look into this more deeply and understand the approach. Looks very promising.
Who is online
Users browsing this forum: No registered users and 73 guests