Known issue: long delays or blocking code kills the connection to the Cloud

While the suggestion to write non-blocking code is good practice in any case, I'd say this delay() should not cause the disconnect, since in default "single" threaded mode delay() calls Particle.process() every 1000ms of accumulated waiting time.
So the question is what does?
Could it be that some connection times out during that delay and will cause the issue when touching it again?
Seeing your code would help there.

1 Like