You can chat about native SDK questions and issues here.

User avatar
By stephennichols
#63294 I've been looking for a way to force the ESP8266 into light sleep mode with an auto-wake timer. All the various wifi_fpm_xxx functions do the delay but oh my the current draw is not what I'd expect.

Delay for, let's say, 5 seconds and the current draw is 15ma until the delay expires.

Delay for 0xfffffff and current draw is 0.5ma until woken up by GPIO.

Delay for, let's say, 100 milliseconds and the current draw is around 3ma and fluctuates. Repeated sleep calls at around 100ms keep the current draw below 15ma but well above 0.5ma.

It looks to me like there's no consistently low-current way to have longer delays. Perhaps the light sleep timer relies on the CPU (which seems peculiar since light sleep should sleep the CPU). Does anyone have any insight on this?

Thanks!