I was using the NONOS SDK withe the low power enable bit in the esp init data, and "wifi_set_sleep_type(LIGHT_SLEEP_T);" to reduce the comsuption when nothing was to do.
In this mode, my board consume arround 6mA under 5V.
Now, I'm using the new SDK RTOS IDF Style, I'm using a phy_init partition, initilialized with the low power enable bit. Since I don't find any function dooing the same than previous "wifi_set_sleep_type(LIGHT_SLEEP_T);" in the new SDK, my board consume arroud 13mA...
More than twice the NONOS SDK...
I've check the RTOS Idle task (and others) activity, when I'm dooing nothing the IDLE task is running arround 70/80% of time.
How can I do to consume less power ??
The only function that I can find is "esp_wifi_set_ps(WIFI_PS_MIN_MODEM)" but this funtion is not yet implemented...
Some one can help me ?
It's very important for me because it's an IOT device, the hardware is already distributed and I need to use the latest SDK (a lot of bugs are corrected).
Thank to all !