HTTPClient get()

wolfsch
Posts: 2
Joined: Sun Oct 17, 2021 2:51 pm

HTTPClient get()

Postby wolfsch » Sun Oct 17, 2021 5:42 pm

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!

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: HTTPClient get()

Postby ESP_Sprite » Mon Oct 18, 2021 1:21 am

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.

wolfsch
Posts: 2
Joined: Sun Oct 17, 2021 2:51 pm

Re: HTTPClient get()

Postby wolfsch » Sat Nov 06, 2021 4:07 pm

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