I have had some trouble with power consumption with some of my electrons.
All are set outside with the same hardware, solar panels, ect.
However some of them seem to drain the battery very quickly, while others operate with no problem at all. These systems are no more than 50 ft form one another, all oriented in the same direction and angle to charge their battery.
Before I determine the issue to be related to hardware with some of these devices I would like to see if software might be an issue. All are running the same code.
Could it be that these devices have some difficulty getting a connection after the wake?
If they should take more than 4 minutes to connect, you may miss the crucial minute 59 and the device may stay connected for another hour before it enters deep sleep again.
Obviously there is one device that has great difficulty connecting and the uptime suggests that it frequently missed its sleep time and stayed awake.
Try moving that device just a few meters (or swap place with a good one), wiggle the antenna connector a bit, reseat the SIM.
Try the device detached from any circtuitry in Safe Mode or a dedicated test application.
You can also flash the cloud debug firmware and have a look at the log - and maybe post it here.
One odd thing is that I have not missed any data (I looked at the timestamps on the site where I am publishing data) which suggests that the electron is connecting and entering the if( (Time.minute() == 59)) loop which should trigger the sleep mode.
I forgot to clarify that the sendData(); subroutine is what sends my data, therefore since my data is sent it suggests that the if( (Time.minute() == 59)) statement is entered
In that case the long up-time could be an indicator that the device isn’t staying asleep but may wake early due to some signal on the WKP pin.
To test the theory and counteract this you could use