I run my devices in Semi-Automatic mode + Threading. When my devices go to sleep, the following piece of code is run (based on an old post):
Particle.connect() <connection attempt up to 3 minutes> Cellular.off(); delay(2000); System.sleep(SLEEP_MODE_DEEP, sleepTime);
This normally appears to work, but in some cases a device may start to breathe blue, and it can take up to a few minutes until it finally enters Sleep. This particularly seems to happen when the Cellular was turned on previously in the code.
It was my understanding that this is the correct way of putting an Electron to sleep; any idea on what needs to change here? Is 2s not sufficient for the Cellular.off() command?