Can I force a photon to reboot through code periodically?

Is there a way for the photon to reboot itself after a predetermined amount of time. I know how to set a timer in code but can’t seem to find a reboot command. Something as simple as:

if (millis() > 86000000)
    {
       reboot();
    }

https://docs.particle.io/reference/firmware/photon/#reset--2

2 Likes

Thanks.

hey… I know this is a closed thread, but… is there still a way to do this? the link seems to be gone.

@romuloescamilla, you can find it here:

4 Likes

thanks! it works beautifully!

-R

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.