I am using particle in Semi Automatic mode. I issue particle.connect() during the setup process and wait for about 40 seconds (using systemIntervalTimer Library to generate interrupt after 40s). if particle is not connected to cloud in 40s then in ISR, I use particle.disconnect() command to continue application without connecting to cloud.
but after particle.disconnect(), electron never returns to application.
This happens everytime I remove the power to electron and reapply power. It seems that after every power cycle, electron requires long time to connect to cloud and hence particle.disconnect command executes.
On the other side, If don’t remove the power but press the reset key, then particle connects to cloud immediately.
I don’t understand why electron takes long time to connect cloud if power is taken off and reapplied
Please suggest if I am doing anything wrong