I am not sure from the documentation or forum if I need to include the Particle.disconnect() statement. What should I do?
void setup() {
Particle.connect();
waitFor(Particle.connected, 60000);
// Let’s say we are ALWAYS connected here.
}// END setup()
void loop() {// At some point we get disconnected from cloud
if (Particle.connected() == false) {// NOT connected to Particle cloud
Particle.disconnect();// is this statement required? or can I comment it out?
Particle.connect();
waitFor(Particle.connected, 60000);
} else {
doStuff();
}
}// END loop()