thanks Peter,
you confirm my finding.
I will try to figure out How to put the wifi in sleep mode.
Right now my pico is running on a lipo battery and still works! But it is still 40ma on lightsleep because of the wifi.
lightsleep
-
- Posts: 51
- Joined: Thu Dec 27, 2018 11:38 pm
- Location: Québec, Canada
Re: lightsleep
OK I got it working. I didn't close the wifi correctly before.
my change is
And now it is 1.9ma on lightsleep
my change is
Code: Select all
. wlan.disconnect()
wlan.active(False)
wlan.deinit()
time.sleep_ms(100)
machine.lightsleep(120000)
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact: