Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
P1 Stop mode using too much power #1098
Im using a P1 with the 0.6.0rc1 firmware, system threading enabled and semi-automatic and am having an issue with the stop mode sleep drawing too much power. When stop mode is working as expected the power draw of my system is 2mA, but when its not working the power draw is 17mA.
I think I have narrowed down the issue to a particular case. Stop mode works as expected when particle.connect is called and actually connects to the cloud. But when particle.connect is called and the device is not within the wifi network, the system tires to connect (flashing green) and never connects to the wifi (because it cant). In this case when it goes into stop mode is when the power draw is 17mA.
I do call particle.disconnect, wifi.disconnect and the wifi.off prior to going into stop mode, but it seems like something is not getting powered down correctly due to the P1 trying to connect to wifi that has creds but it out of the wifi network.
Is there a way to force stopping the P1 from trying the wifi.creds?
does wifi.disconnect do anything if wifi.connecting is true?
Here's a simple test case that exploits this issue: