Expected Behaviour of Boron When Cellular Connection is Lost

I have tested a Boron for behavior once cellular connection is lost. The results seem to be mixed. In a few cases I lost functionality along with loss of cellular connection. In other cases, it seems to be functioning just fine despite dropping connection.

I have simple firmware that loops through and allows me to switch an LED light on or off from a button on the breadboard. I’m calling Particle.publish() every 5 seconds as a test. There are no delays. At least one time I was unable to trigger the LED once the connection was lost (and thus blinking green). In another case I’m still able to trigger the LED despite the connection being lost (blinking green).

So, my question is: what is the expected behavior for a Boron: Does losing cellular connection stall out the loop thread and thus block code execution? Is it necessary to always test with Particle.connected()? Are there ways to guarantee that connectivity issues never interfere with main thread code execution?

@risingtiger I recommend checking this out https://docs.particle.io/reference/device-os/firmware/boron/#system-thread.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.