I am looking for something like a watchdog but I don't want to reset the system but call a function if the "watchdog" is tripped. I am pretty sure that there is a practical way or a library for that but I can't find it.
Would anyone be so kind to point me in the right direction..
The important thing that sets a watchdog apart, is that it works in hardware, and has no dependence on software...
If your code falls into a ‘deadly embrace’, it will never get out to check the ‘activity monitor’... in which case, it can’t help you detect an unknown software failure.
But you can perform health checks - if they’re written perfectly, that can modify the operation of your code.
lastchancename:
The important thing that sets a watchdog apart, is that it works in hardware, and has no dependence on software...
If your code falls into a ‘deadly embrace’, it will never get out to check the ‘activity monitor’... in which case, it can’t help you detect an unknown software failure.
But you can perform health checks - if they’re written perfectly, that can modify the operation of your code.
Yes but..
"I don't want to reset the system but call a function if the "watchdog" is tripped." Tells me that the software is still "alive".