[GH-ISSUE #1440] QUESTION: Optional params in wifiConnectNew to allow passing BSSID and Channel to Wifi.Begin to quicken connection? #1232

Closed
opened 2026-02-28 01:29:09 +03:00 by kerem · 2 comments
Owner

Originally created by @3dprintscanner on GitHub (Jun 23, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1440

As part of an IOT project I'm working on, getting a quick Wifi connection is essential to save battery and a great optimisation for this is to cache the BSSID and channel (Wifi.BSSID() and Wifi.Channel()) of the router which makes connection times twice as fast as even using a static IP.

Currently I'm storing these values in memory but would like to have an easy way of passing them back into WifiManager to make use of the autoconnect functionality.

It looks like the wifiConnectNew method could be optionally overloaded to allow passing of BSSID and Channel values.

Something like:
bool WiFiManager::wifiConnectNew(String ssid, String pass,bool connect, int channel = 0, *int BSSID = NULL)

Originally created by @3dprintscanner on GitHub (Jun 23, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1440 As part of an IOT project I'm working on, getting a quick Wifi connection is essential to save battery and a great optimisation for this is to cache the BSSID and channel (`Wifi.BSSID()` and `Wifi.Channel()`) of the router which makes connection times twice as fast as even using a static IP. Currently I'm storing these values in memory but would like to have an easy way of passing them back into WifiManager to make use of the `autoconnect` functionality. It looks like the `wifiConnectNew` method could be optionally overloaded to allow passing of BSSID and Channel values. Something like: `bool WiFiManager::wifiConnectNew(String ssid, String pass,bool connect, int channel = 0, *int BSSID = NULL)`
kerem 2026-02-28 01:29:09 +03:00
Author
Owner

@tablatronix commented on GitHub (Jun 25, 2022):

fast connect branch is being tested

<!-- gh-comment-id:1166147505 --> @tablatronix commented on GitHub (Jun 25, 2022): fast connect branch is being tested
Author
Owner

@tablatronix commented on GitHub (Jun 25, 2022):

#1342

<!-- gh-comment-id:1166147557 --> @tablatronix commented on GitHub (Jun 25, 2022): #1342
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1232
No description provided.