I'm using the force sleep API to have my ESP8266 go into standby mode for a period of time. I'm seeing weird current draw behavior, though.
- If I set the time period to 0xFFFFFFF (max time) then I'm getting 0.5ma of current draw but can only wake based on external GPIO.
- If I set the time period to, say, 5000ms then the current draw sticks at 15ma until the timer expires then goes back up to 70ma.
- If I set the time period to 100ms then the current draw goes between 0.5ma and 15ma -- averaging around 4ma with my slow multimeter.
- If I set the time period to 10ms then the current draw sticks at 70ma.
What I'd like to be able to do is use forced light sleep to put the chip into standby mode then wake up periodically to do other work without paying the cost of a deep sleep reboot. Seems that this should be possible. Any ideas?
I'm using SDK 2.0.0(656edbf).
Force sleep code is lifted directly from the SDK documentation with timer values changed to test various current draw measures.
Thanks in advance for any help on this.