The Electron I run shall do some measurement at a random interval and publish measurement values.
So to detect Cellular or Cloud disconnection I check both for the connection status (
I also check the return from:
So if there is any indication that the connection is broken the measurements are stored and published when the connection is reestablished.
I test this by disconneting the antenna from the PCB.
The storage functionallty work very well except during the time between antenna disconnection until I get green blinking LED.
During this period no measurement are stored.
This period is between 7 and 30 seconds. Is there a way to detect disconnection faster than this?
As well as the
Libs supplied by Rickkas7.
keepAlive maybe could affect this. That I have set at default
Particle.keepAlive(23 * 60);.