I just started using Particle Cloud today. Previously I was using my own MQTT connection to AWS and not connecting to Particle Cloud at all. I need to switch my devices to using Particle Cloud until I resolve a bug in my own code.
I’m using SYSTEM_MODE(MANUAL) and a third party SIM (Hologram) on Boron LTE. In setup() I connect to cellular, and then call Particle.connect(). That works fine, and events publish as expected. Approximately every 2 minutes, I get this error:
0001125075 [comm.protocol] ERROR: Event loop error 1 0001125075 [system] WARN: Communication loop error, closing cloud socket
The Boron rapidly flashes cyan and reconnects. I have keepalive set at 100 seconds, am using SYSTEM_THREAD(ENABLED), and do not call Particle.process() anywhere in my code.
My loop runs quickly, except for when it’s reading sensors, and then it takes about 3-4 seconds to complete. Sensors are read every 20 seconds, and the disconnects are very regular, at 2mintues and 10-15 seconds apart.
I doubt this is expected behavior. Any ideas what would cause this? I haven’t found anything yet on the forum that seems similar, but I’ll keep searching.