-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add support for open networks to enduser_setup #3392
Conversation
I compiled nodemcu for the first time to fix this bug, and it was a great experience. Congratulation for such a nice compiling setup. Should we add in the docs of enduser_setup a complete example of an adequate boot process (init.lua)?
It would be nice to have such an example chunk for init.lua |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest looks good.
app/modules/enduser_setup.c
Outdated
if (name_str == NULL || pwd_str == NULL) | ||
|
||
// in case we dont get a passwd (for open networks) | ||
if (pwd_str == NULL) { pwd_str="wifi_password="; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be an ENDUSER_SETUP_DEBUG note about this.
Maybe
ENDUSER_SETUP_DEBUG("Password string not found. Setting to empty");
app/modules/enduser_setup.c
Outdated
// in case we dont get a passwd (for open networks) | ||
if (pwd_str == NULL) { pwd_str="wifi_password="; } | ||
|
||
if (name_str == NULL) | ||
{ | ||
ENDUSER_SETUP_DEBUG("Password or SSID string not found"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please adapt the Message. "SSID string not found"
Wellcome to the club!
The lua_examples folder would be a nice place for that. Maybe write a comment about what go.lua is (I can guess, but just to be clear) I think a different PR would be good for that. |
Yes, and then link to it from the docs. |
Oh, it's already here: #3395 |
@blobule could you please address Gregor's comments? |
Fixes #3374.
dev
branch rather than for therelease
branch.docs/*
.I fixed the bug, making sure an open network (without password) is handled correctly.
I tested it and it works perfectly.