[SOLVED] Can photon enter safe mode through a system call from watchdogtimer?

Solution: Use System.enterSafeMode();

Hello everyone,
I am trying to enter safe mode through software. If my watchdog timer expires, when the photon is stuck, it should enter safe mode automatically instead of I pushing RESET, holding SETUP button for 4 seconds and then releasing RESET. Is there a system call to do that?

Thanks
Dheeraj

Something like this obscurely named function?
https://docs.particle.io/reference/firmware/photon/#entersafemode-

The docs are there for everybody and do feature a search feature.

3 Likes

Oops. Sorry I didn’t search the docs.

No worries. @ScruffR is helpful but very… direct :stuck_out_tongue:

Glad you got it figured out.

2 Likes