espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.41k stars 7.25k forks source link

[TW#15704] ESP32 WiFi can't connect to network with hidden SSID #1058

Closed ismintis closed 6 years ago

ismintis commented 6 years ago

I am using ESP-IDF v2.1 and Espressif ESP32 Development Board - Developer Edition

I am unable to WiFi connect to an AP with hidden SSID. When I change the router to advertise the SSID, then the code works.

liuzfesp commented 6 years ago

@yaoyogi this is a know issue and I think it's already fixed in latest IDF.

pfe-aicoe commented 6 years ago

I am on version 3.0 . Still getting the WL_NO_SSID_AVAIL for the hidden ssid.

XinDeng11 commented 6 years ago

@pfe-aicoe Hi, I can't reporduce it, maybe you can tell us which channel has you set and what's your country region, beacuse we send the probe request frame according to the channel number and country region, some channels is forbidden to set probe request activily in some countries. If you set to the specfic channel fortunately, it shouldn't connect.

theproxy commented 6 years ago

I had this issue today. It didn't work with WifiMulti as the client, but it did with the straight WiFi.h library. We didn't dig further just yet, but I wanted to add another data point.

pfe-aicoe commented 6 years ago

Alan, Can you please share your code. I am using https://github.com/JeroenBeemster/ESP32-WPA2-enterprise/blob/master/ESP32_WPA2enterprise.ino This has

include "esp_wpa2.h"

include "WiFi.h"

XinDeng11 commented 6 years ago

Hi @pfe-aicoe , I saw you use the wpa enterprise, so I do a test with a hidden enterprise AP, found the connect is OK. So I still suggest you checking about your channel whether is forbidden to set probe request activily. I.e, in China, we can do active scan in channel 1~11, but can not do active scan in channel 12 and 13, if a hidden SSID AP in channel 12, 13. We can't send probe request so that we wouldn't receive probe response so that we can't find it.

pfe-aicoe commented 6 years ago

Can you please share your test code ? I will check on the channel as well.

Thank you

-------- Original Message -------- From: XinDeng11 notifications@github.com Date: Fri, March 23, 2018 5:50 AM -0400 To: espressif/esp-idf esp-idf@noreply.github.com CC: "Khurana, Vivek" Vivek.Khurana@pfizer.com, Mention mention@noreply.github.com Subject: [EXTERNAL] Re: [espressif/esp-idf] [TW#15704] ESP32 WiFi can't connect to network with hidden SSID (#1058)

Hi @pfe-aicoehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pfe-2Daicoe&d=DwMFaQ&c=UE1eNsedaKncO0Yl_u8bfw&r=ETv3UMt1kOna2UW9skj4EB973twUG8S6avSNumsLjTc&m=FQeXLR5Rbt5cYSng8NgxTnYOLqgwPcAPl3vnqSVYobU&s=G9bXHBv_8TzK1VocwU2xGBD7ByEAjWuHAJb1iQtYvQk&e= , I saw you use the wpa enterprise, so I do a test with a hidden enterprise AP, found the connect is OK. So I still suggest you checking about your channel whether is forbidden to set probe request activily. I.e, in China, we can do active scan in channel 1~11, but can not do active scan in channel 12 and 13, if a hidden SSID AP in channel 12, 13. We can't send probe request so that we wouldn't receive probe response so that we can't find it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_espressif_esp-2Didf_issues_1058-23issuecomment-2D375598375&d=DwMFaQ&c=UE1eNsedaKncO0Yl_u8bfw&r=ETv3UMt1kOna2UW9skj4EB973twUG8S6avSNumsLjTc&m=FQeXLR5Rbt5cYSng8NgxTnYOLqgwPcAPl3vnqSVYobU&s=6-fHrAPYQbRUl6UxqW5PsfO9RI-cHTaKSZZmUkNlGRA&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AjlAzi7W547qyy0HMt9zn6uril4w00wnks5thMVEgaJpZM4PpwwX&d=DwMFaQ&c=UE1eNsedaKncO0Yl_u8bfw&r=ETv3UMt1kOna2UW9skj4EB973twUG8S6avSNumsLjTc&m=FQeXLR5Rbt5cYSng8NgxTnYOLqgwPcAPl3vnqSVYobU&s=dbnm_mtw9ogPbUSm-iRFZVJZGZrQcz_P9ren9wG1OP8&e=.

XinDeng11 commented 6 years ago

@pfe-aicoe Just our example