-
Notifications
You must be signed in to change notification settings - Fork 7.6k
SSID and passphrase/PSK may be truncated or be treated as broken #5367
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
|
The third problem is not fixed (once fixed and newly made!) on the current HEAD. Or is the ESP-IDF bug is fixed? |
Are you saying we should add |
Yes. |
do you have any way to confirm this? If so, we can add the fix here and notify IDF team of the issue. |
I've made a test sketch but I can't reproduce the problem now. |
Hardware:
Board: ESP32 Dev Module
Core Installation version: 1.0.3
IDE name: Arduino IDE
Flash Frequency: 40MHz
PSRAM enabled: no
Upload Speed: 460800
Computer OS: Debian
Description:
strlcpy()
.wifi_ap_config_t::password[64]
usingstrncpy()
resolved the issue. So it's an ESP-IDF bug and affected by some noise bytes after NUL, I guess.%
will cause unintentional printf formatting and will be broken in WiFiAP.cpp and WiFiSTA.cpp.SSID and passphrase/PSK should always be copied using
strncpy()
, I think.Sketch:
In the official example WiFiAccessPoint.ino, you should use...:
%
character in SSID and passphrase.In the official example WiFiClient.ino, you should use...:
%
character in SSID and passphrase.Debug Messages:
No debug messages.
The text was updated successfully, but these errors were encountered: