Sleep in 5.0rc1

It seems that when I put the P1 into sleep mode and when it wakes, it now automatically turns on the wifi and connects to the cloud before I can put it back to sleep.

Did the sleep functionality change with5.0rc1?

My sleep functionality at 0.4.9 was it would sleep for 6 sec wake up to check a few pins (while keeping the wifi off) then immediately going back to sleep.

What system mode are you using?

Yes, the sleep behavior changed. If the cloud connection was active before sleeping, it will be re-instated before returning from sleep. This is more consistent than the previous behavior. If you don’t want the cloud available, then you can call Particle.disconnect() before sleeping.

3 Likes