With or without SYSTEM_THREAD(ENABLED)
Particle.process()
won't cause any trouble.
But other commands (e.g. at least Particle.publish()
used to) should be wrapped in an
if (Particle.connected()) { ... }
With or without SYSTEM_THREAD(ENABLED)
Particle.process()
won't cause any trouble.
But other commands (e.g. at least Particle.publish()
used to) should be wrapped in an
if (Particle.connected()) { ... }