ESP32_VS1053_Stream icon indicating copy to clipboard operation
ESP32_VS1053_Stream copied to clipboard

Watchdog

Open vladkozlov69 opened this issue 1 year ago • 2 comments
trafficstars

Can we have a some kind of watchdog here? i.e. callback function when no data send to VS1053 for some time?

vladkozlov69 avatar May 02 '24 14:05 vladkozlov69

Hi @vladkozlov69 I am not sure what you mean.

CelliesProjects avatar May 02 '24 17:05 CelliesProjects

Hi @CelliesProjects

I think we can add something like this

extern void audio_stream_stats(int eventType, int value) __attribute__((weak));

and call it from these places where we have logging "spend %lu ms stuffing %i bytes in decoder", "Stream stalled for %lu ms" etc.

This way the user application will have the info about unstable connection, can feed WDT, etc.

vladkozlov69 avatar May 08 '24 13:05 vladkozlov69