Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watchdog #30

Open
vladkozlov69 opened this issue May 2, 2024 · 2 comments
Open

Watchdog #30

vladkozlov69 opened this issue May 2, 2024 · 2 comments

Comments

@vladkozlov69
Copy link

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

@CelliesProjects
Copy link
Owner

Hi @vladkozlov69 I am not sure what you mean.

@vladkozlov69
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants