Photon System.sleep(D3, RISING) current draw confusion

When I use System.sleep(D3, RISING);
current draw on my inexpensive usb power monitor shows 0.05A
When I insert; before System.sleep
current draw goes below the monitor’s range (-0.00A). This is all very good and works great and WiFi gets turned on with a high on D3. But my reading of the docs and previous posts leads me to believe System.sleep(D3,RISING) or equivalent is supposed to turn off WiFi automatically, but it doesn’t appear to do so. Am I misunderstanding something? I’m compiling on “latest” branch.

At present, WiFi is enabled only in AUTOMATIC mode. We are discussing changing that so WiFi is restored to it’s previous state whatever mode the system is in.

1 Like