espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.57k stars 7.4k forks source link

Allow authmode setting in WiFi.begin and WiFi.connect #6139

Open Moddingear opened 2 years ago

Moddingear commented 2 years ago

Related area

Wifi

Hardware specification

Esp32

Is your feature request related to a problem?

Currently the ESP32 can only connect to WPA-secured WiFi using the default library, whereas it has support for all other security profiles.

Describe the solution you'd like

Add a parameter in WiFi.begin, or add another WiFi.begin where we can give our own config.

Describe alternatives you've considered

No response

Additional context

No response

me-no-dev commented 2 years ago

it will actually use the security profile that the AP is advertising.

patricklaf commented 2 years ago

With 2.0.2 release, ESP32 can not join AP with hidden SSID and WEP security. It works well with release 1.0.6. If I revert this commit the ESP32 joins correctly.

me-no-dev commented 2 years ago

@patricklaf this has since been reverted in master: https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/src/WiFiSTA.cpp#L95