-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
WifiMulti.run not connecting to declared APs which don't broadcast SSID #2246
Comments
Was this ever updated to include non broadcasting APs? |
I can confirm. I also noted something odd. The behavior seems to be that it will not connect to a hidden wifi SSID. However, if I upload a sketch (like WiFiClient example) to the same ESP8266 device that uses just ESP8266WiFi.h and WiFi.begin(), it will connect. If I then upload the original sketch (like BasicHttpClient) that uses WiFiMulti, it connects. I have confirmed this behavior on every new ESP8266 device (2x NodeMCU and 2x WeMos D1 Mini) that I introduce to my wireless network. Thereafter, they seem to connect just fine with WiFiMulti. Can anyone else confirm? |
That method does not work for me. WiFi will connect to a hidden SSID, but WiFiMulti will not, even after successful test with WiFi only. I think Steve is right about the scanning feature of WiFiMulti; it continues to return WL_NO_SSID_AVAIL. |
What's the chances of this bug ever gettng repaired :) I do workarounds and use a combination of WifiMulti and normal WiFi.begin. It would be really handy to just be able to add the hidden SSIDs to WifiMulti. |
@SteveToulouse @Fibula1 |
I have just stumbled upon this and I'm running
This looks like a |
Will there be a fix for this? |
@sezeryalcin |
I do an async scan before getting to wifimulti WiFi.scanNetworks(true, true); // Async and show hidden |
Code itself does not scan hidden APs.: I or someone can try changing it but I didn't check if underlying mechanism will support hidden APs. |
That's what I ask to you (and I don't know if you tried). |
Ok, I will try now |
It did not work by just changing to scan hidden. Here it's doing processing by ssid and in this case there is none: It's really surprising that hidden networks were not considered while doing wifimulti.It needs a detailed look without breaking existing functionality. |
@sezeryalcin This request is now pushed to 3.0.0. |
I've redesigned the implementation of the |
Already solved by #7629 |
Basic Infos
Hardware
Hardware: NodeMCU 1.0 Amica ESP-12E
Core Version: 2.3.0 github latest edited
IDE Arduino: 1.6.9 edited
Description
The nearest AP at my workplace (2 metres away) doesn't broadcast its SSID (checked by WiFiScan example sketch) but the NodeMCU connects perfectly well with a simple
WiFi.begin("WorkAP1","passphrase0")
(tested on NTPClient example sketch).When I added it to a test sketch (see also #2117, 2115) by
addAP
, no connection occurs, no errors either. The AP is simply "not there" as far as WiFiMulti is concerned, even though I told it that it exists.The problem seems to be that it is looping through the visible (by scan) networks to see if they are in the addAP'ed list and, among those which are, to pick the strongest. It should probably be looping through the addAP'ed APs to get their strengths and connect to the strongest one. I don't know how to acheive this for "hidden" SSIDs though.
NOTE: Work environment is densly populated with APs (16 APs at -74..-93dB) but I don't believe this is an issue.
Settings in IDE
Module: NodeMCU 1.0 (ESP-12E Module)
Flash Size: 4M (3M SPIFFS)
CPU Frequency: 80Mhz
Flash Mode: n/a
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: n/a
Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: