-->
Page 1 of 1

WifiManager with fast connect time

PostPosted: Sat Aug 22, 2020 11:26 am
by btidey
Normal start up connect times are around 3 seconds and this also applies to applications using the excellent tzapu WiFiManger library for network configuration support.

It is possible to reduce start up times considerably if the Wifi channel and router mac address are used when configuring the stored connect parameters. This reduces start up time to 1 second or less depending on the router response.

The fast connect is particularly useful in deep sleep applications to be more responsive when waking and minimising active time in battery applications.

I have modified a version of the standard tzapu WiFi manger to support this. Normal operation is unchanged but if a call is made to setFastConnectMode(true) before calling WiFiManager autoconnect then when the app is configured it will use this fast method.

I have made a pull request for this change but the code is available in my fork at

https://github.com/roberttidey/WiFiManager

The support is in the development branch.

Re: WifiManager with fast connect time

PostPosted: Sat Aug 22, 2020 4:19 pm
by btidey
btidey wrote:Normal start up connect times are around 3 seconds and this also applies to applications using the excellent tzapu WiFiManger library for network configuration support.

It is possible to reduce start up times considerably if the Wifi channel and router mac address are used when configuring the stored connect parameters. This reduces start up time to 1 second or less depending on the router response.

The fast connect is particularly useful in deep sleep applications to be more responsive when waking and minimising active time in battery applications.

I have modified a version of the standard tzapu WiFi manger to support this. Normal operation is unchanged but if a call is made to setFastConnectMode(true) before calling WiFiManager autoconnect then when the app is configured it will use this fast method.

I have made a pull request for this change but the code is available in my fork at

https://github.com/roberttidey/WiFiManager

The support is in the development branch.


Wow. That was quick. This has been merged onto main tzapu WifiManager github as branch feature_fastconnect