-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Unable to connect to ap with ssid of 32 characters length #3218
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
Per ESP-IDF this is intentional: espressif/esp-idf#1176 |
[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. |
What is intenional? That it is impossible to connect to an AP with SSID length of 32 characters? But this is the allowed maximum SSID length ... Today I came over this once again. But this time without an error message, the connection could not be established without giving any reasons on the console. With using shorter SSID everything works as expected (but I cannot change it in target environment!). Please note that with using a ESP8266 instead, this does NOT face this problem. |
In 1.0.5 this will generate an error - https://github.com/espressif/arduino-esp32/blob/1.0.5/libraries/WiFi/src/WiFiSTA.cpp#L124 |
Yes, I can confirm that this causes an error. For a long time already. But only for ESP32. Not for ESP8266. And the "if" in referenced line is simply not correct as the SSID max length per standard is 32 characters. See §7.3.2.1 in https://www.iith.ac.in/~tbr/teaching/docs/802.11-2007.pdf |
Fixed in master |
I get same error with an 18 character ssid. |
#2746 # Hardware:
Board: ESP32-WROVER-B
Core Installation version: ??? (n/a)
IDE name: Platform.io
Flash Frequency: ??? (n/a)
PSRAM enabled: yes
Upload Speed: 115200
Computer OS: Windows 10
Description:
My ap's ssid is of 32 characters length, the max allowed AFAIK.
On connecting the serial console shows an error message: "[E][WiFiSTA.cpp:124] begin(): SSID too long or missing!"
WiFiSTA.cpp check length ssid > 31 ... seems to assume a trailing '\0'. But IMHO such is not enforced by the spec.
Sketch: (leave the backquotes for code formatting)
The text was updated successfully, but these errors were encountered: