I tried to use an Arduino implementation. Hours of digging through the source code later because half this stuff is undocumented I'm giving up, because the design choices are fundamentally stupid and broken. Why did I even try? Seriously. Sigh.
You don't need to do that. The SDK takes care of negotiating with the access point and scheduling wakeups at exactly the right interval to make packet processing work. This is *standard* WiFi functionality. It's how your phone's WiFi chip saves power.
-
-
Literally just calling wifi_set_sleep_type(LIGHT_SLEEP_T); in ESP8266_NONOS_SDK-2.2.1 (and not spinning the CPU) brings down average power consumption to <5mA average and pings still work, just with increased/variable latency as the ESP is asleep between TIM intervals.
-
Appreciate you sharing the info! Not that I am not aware of it. The power requirements for my app are far lower than what even the latest gen (and soon to be launched) ESPs can deliver. Hence resorted to another stunningly low power uC to wake up the ESP only when needed.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.