Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QUESTION: Optional params in wifiConnectNew to allow passing BSSID and Channel to Wifi.Begin to quicken connection? #1440

Closed
3dprintscanner opened this issue Jun 23, 2022 · 2 comments
Labels
Discussion Further Discussion ongoing

Comments

@3dprintscanner
Copy link

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)

@tablatronix
Copy link
Collaborator

fast connect branch is being tested

@tablatronix tablatronix added the Discussion Further Discussion ongoing label Jun 25, 2022
@tablatronix
Copy link
Collaborator

#1342

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Further Discussion ongoing
Projects
None yet
Development

No branches or pull requests

2 participants