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

Feature/app watchdog #860

merged 5 commits into from Feb 5, 2016


Copy link

commented Feb 4, 2016

Provides a critical-priority thread that wakes up at a given timeout interval to see if the application has checked in.


// declare a global instance
ApplicationWatchdog wd(timeout_milli_seconds, timeout_function_to_call, stack_size=512);
  • if the application has not exited loop, or called Particle.process() within the given timeout, the watchdog calls the given timeout function.
  • A default stack size of 512 is used for the thread. The stack can be made larger or smaller as needed.


ApplicationWatchdog wd(60000, System.reset);
// reset the system after 60 seconds if the application is unresponsive

The application watchdog requires interrupts to be active in order to function. Enabling the hardware watchdog in tandem with this is advised to detect when interrupts are not firing.

@cmsunu28 cmsunu28 added the in progress label Feb 4, 2016

adds missing include path on the electron so wiring_globals has acces…
…s to `concurrent_hal_impl.h`. This mirrors the include path as it is for the Photon.

@m-mcgowan m-mcgowan added this to the 0.5.x milestone Feb 5, 2016

m-mcgowan added a commit that referenced this pull request Feb 5, 2016

@m-mcgowan m-mcgowan merged commit 35a7851 into develop Feb 5, 2016

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
continuous-integration/travis-ci/push The Travis CI build passed

@cmsunu28 cmsunu28 removed the in progress label Feb 5, 2016

@m-mcgowan m-mcgowan referenced this pull request Mar 17, 2016
17 of 17 tasks complete

@m-mcgowan m-mcgowan deleted the feature/app_watchdog branch Sep 27, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.