ESP32-audioI2S icon indicating copy to clipboard operation
ESP32-audioI2S copied to clipboard

ESP32 reboot using ‘audio.connecttohost’

Open Dcmwrnd opened this issue 6 months ago • 2 comments

Hi to all,

For you guys out there, if you are using ‘audio.connecttohost’ for internet radio on your ESP32 4MB Dev Module without PSRAM and reboot itself very often or once in a while like every hour or hours. Try this out on your Arduino IDE:-

void loop() { audio.loop(); vTaskDelay(1); }

Set the ‘vTaskDelay();’ between 3 and 20. Currently I’m using ‘vTaskDelay(10);’ and voila! The ESP32 did not reboot the whole day. I even tested up to ‘vTaskDelay(30);’ and it still works.

Regards, David

Dcmwrnd avatar May 25 '25 07:05 Dcmwrnd

Have you tried increasing the connection timeout?

https://github.com/schreibfaul1/ESP32-audioI2S/blob/master/src/Audio.h#L146C10-L146C76

enjoyneering avatar May 28 '25 18:05 enjoyneering

Thanks for your recommendation and I will give it a try and see what happen. Regards.

Dcmwrnd avatar May 29 '25 05:05 Dcmwrnd

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 29 '25 03:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 13 '25 03:07 github-actions[bot]