In my application, after some Particle variables are changed in the cloud, I need to restart my Photon. For this I am using System.reset.
When my code was short and simple, things worked well. But now, when System.reset is executed, the Photon seems to restart but never connects back to the cloud until I either recycle power or press the reset button.
What could be causing that? Is there a more reliable was to restart the Photon?
I also noticed that every time after I flash new code, the Photon keeps flashing green after re-flash success. It does not connect to the network until I either recycle power or press the reset button.
Is there a “bullet-proof” way to restart the Photon by simulating a “reset” button press? I realize that an additional processor can be used along with a relay but is there a simpler way?
Once the issues are addressed System.reset() should be just as bullet-proof as one should want.
BTW, the RESET button doesn’t always cure all problems either, that’s something that will also needs to be addressed in the bootup sequence.