EVerest / everest-framework

Apache License 2.0
21 stars 19 forks source link

Feature/add watchdog helper #151

Open corneliusclaussen opened 10 months ago

corneliusclaussen commented 10 months ago

Adds watchdog functionality to the framework

Each module has a WatchdogSupervisor in its main module class that sends out watchdog feed heartbeats via MQTT. This can be monitored by the manager (not yet implemented here). This at least ensures that the watchdog supervising thread in the module is still alive and MQTT communication works.

The module code can register multiple internal watchdogs, which is useful if it has looping threads.