Electron keepAlive() needed?

I’ve been testing a program using an Electron and a 3rd Party SIM (Rogers in Canada, coincidentally the same network that the Particle SIM cards use). The keep alive period seems to be about 150 seconds.

The program I’m now using to test is a simple light logger that publishes 6 readings every 6 mins. Based on the tips in @rickkas7’s tutorial on 3rd Party SIMs, I assumed keepAlive would not be necessary, so I omitted it to see what happens. The result is that the Particle.publish events do not make it to the Particle cloud. When I include Particle.keepAlive(150), the program works great. Any idea why this would be?

1 Like