Make sure you check Particle.connected() before you call Particle.publish(). If you call Particle.publish() while the cloud is enabled but not connected, the function will block until the cloud is actually connected.
rickkas7
6
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Electron NEVER Going Back Online after ANY Sleep() Function | 3 | 502 | February 28, 2019 | |
| Electron not waking from sleep if connection process is aborted | 0 | 1401 | May 25, 2017 | |
| Issues with connecting after Stop Sleep | 2 | 967 | November 17, 2017 | |
| Electron won't process Function calls post-sleep | 12 | 1646 | October 2, 2019 | |
| Electron not attempting to establish connection to Particle cloud | 0 | 772 | September 14, 2020 |