Out here in the wilds of Oklahoma, my phone usually only has 2 bars, so the Electron frequently looses the signal. When this happens, it’s flashing GREEN in a panic and the program stops running until it is back to breathing cyan.
In use, this might be a bit of a disaster.
Is there a way I can keep the program running while the particle is searching for network, and for the program to know that the network is disconnected so it can take some action, like sound an alarm and display, “NO NETWORK” or something?