Page 1 of 1

Expected Timing for WIFI_RESUME

PostPosted: Tue Jan 12, 2021 9:08 am
by Michael Poettgen
I've got a project using the WEMOS D1 mini Lite (ESP-8285) to post some data after deepsleep [framework: arduino, platform: espressif8266 - version: 2.6.2, board: d1_mini_lite]. To connect to the WiFi I'm using the experimental WIFI_SHUTDOWN/WIFI_RESUME APIs. The time to connect to my WiFi is about 3.77 seconds and I was wondering, whether that would be expected timing or whether this is slow, so that I would have to try and figure out, whether I'm doing something wrong here.

The only thing I can see in diagnostic output from the framework is:
Code: Select allfpm close 3
mode : sta(nn:nn:nn:nn:nn:nn)
add if0
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3

connected with XXXX, channel N

Any feedback appreciated.

Re: Expected Timing for WIFI_RESUME

PostPosted: Mon Feb 15, 2021 5:26 pm
by Michael Poettgen
In case someone plans to use WIFI_SHUTDOWN/WIFI_RESUME: A recent change to the ESP8266WiFi library reduces connection time to about 1.1 seconds. Fix should be available with the 3.x version.