-
Notifications
You must be signed in to change notification settings - Fork 7.6k
WiFiMulti not working with hidden SSID #3325
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
Comments
Does it work if the hidden ssid is the only one added to the list? |
No... |
WiFi.scanNetworks() will not show hidden SSIDs by default, WiFiMulti doesn't pass the flag to enable hidden networks to be included. You can try changing this line to:
And see if it works. |
If the hidden flag is set to true, Scan will return an entry in its scan
table for all AP it sees with RSSI, channel and other information...
what needs to happen in the WiFiMulti code is if scan returns an SSID of
empty, ie: its hidden, it should try a connection with all the "requested"
SSID to see if it can connect...
As a minimum, a note needs to be added that code will NOT work with hidden
SSID.. but again, more and more we are seeing hidden SSID everywhere---> so
this code should be fixed to support hidden SSID.
~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~
Tom Lafleur
…On Sun, Oct 6, 2019 at 2:11 PM Mike Dunston ***@***.***> wrote:
WiFi.scanNetworks() will not show hidden SSIDs by default, WiFiMulti
doesn't pass the flag to enable hidden networks to be included. You can try
changing this line
<https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/src/WiFiMulti.cpp#L103>
to:
scanResult = WiFi.scanNetworks(false, true);
And see if it works.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3325?email_source=notifications&email_token=ABC4EK7JXPIMESJ66TES3KDQNJIAZA5CNFSM4I546J3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAOUE6Q#issuecomment-538788474>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABC4EK22DKEI42XMKSTDIWDQNJIAZANCNFSM4I546J3A>
.
|
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
I were expecting fix for this as well, and after all this time none work on it ? Really ? |
Fixed by #9202 |
In a quick test with the provided example for WiFiMulti, I was unable to connect to a hidden SSID...
If I use the standard WiFi.begin(nSSID, nPassword); version, all work fine and it can find the hidden SSID.
Arduino IDE 1.8.10
ESP32 Arduino 1.0.4
The text was updated successfully, but these errors were encountered: