Fast wifi station connect?
Posted: Mon Feb 20, 2017 8:17 pm
I am considering using ESP32 for battery powered wifi sensor device so the power consumption is important.
As I have observed after the board boots up and esp_wifi_connect() is called it usually takes about 1.1 seconds till SYSTEM_EVENT_STA_CONNECTED happens. After that everything seems to work quick - DHCP acquires address in about 0.1 seconds and so on.
So it seems that wifi lib does a full scan of all the channels to look for appropriate/best accesspoint.
This makes me want to have some kind of "hinted" esp_wifi_connect() mode where it first scans just the channel it was last connected to the AP. And if the AP is still there (on same channel) proceed to connecting without scanning the other channels.
Such feature would allow to dramatically cut down "modem active" time and give big power saving in an application that requires just a few packet exchanges.
Is there such a feature planned?
What is esp_wifi_clear_fast_connect() about?
I was not able to find an SDK roadmap here.
Thanks in advance,
As I have observed after the board boots up and esp_wifi_connect() is called it usually takes about 1.1 seconds till SYSTEM_EVENT_STA_CONNECTED happens. After that everything seems to work quick - DHCP acquires address in about 0.1 seconds and so on.
So it seems that wifi lib does a full scan of all the channels to look for appropriate/best accesspoint.
This makes me want to have some kind of "hinted" esp_wifi_connect() mode where it first scans just the channel it was last connected to the AP. And if the AP is still there (on same channel) proceed to connecting without scanning the other channels.
Such feature would allow to dramatically cut down "modem active" time and give big power saving in an application that requires just a few packet exchanges.
Is there such a feature planned?
What is esp_wifi_clear_fast_connect() about?
I was not able to find an SDK roadmap here.
Thanks in advance,