Skip to content
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

Wi-Fi credentials with spaces fail #18

Closed
phoddie opened this issue Feb 14, 2023 · 4 comments
Closed

Wi-Fi credentials with spaces fail #18

phoddie opened this issue Feb 14, 2023 · 4 comments

Comments

@phoddie
Copy link

phoddie commented Feb 14, 2023

When using a Wi-Fi SSID or password that contains spaces, the MCU plug-in generates an invalid command line. For example, if the SSID is "Moddable WiFi" this is the command line:

mcconfig -d -x localhost:5004 -m -p esp/nodemcu ssid=Moddable WiFi password=xyzzy

The correct command line is:

mcconfig -d -x localhost:5004 -m -p esp/nodemcu ssid="Moddable WiFi" password=xyzzy

A password with spaces fails in the same way.

I tried putting entering quotes in the "WiFi | SSID" field, but they are removed.

@ralphwetzel
Copy link
Owner

Thank you for reporting this!
Should be fixed now by a commit a few minutes ago.
Would be great if you find time to give it a try...

@phoddie
Copy link
Author

phoddie commented Feb 15, 2023

Thanks. That works much better.

FWIW – It fails for values that contain " or '' but that's probably enough of an edge case that it isn't worth addressing now.

@phoddie phoddie closed this as completed Feb 15, 2023
@ralphwetzel
Copy link
Owner

It fails for values that contain " or ''...

Thank you for this heads-up. You're fully right.
I've refactored it once again - to omit dancing with the oddities of the various command lines. Handover of this data is now performed via the config arguments in the manifest.json.

@phoddie
Copy link
Author

phoddie commented Feb 16, 2023

Thanks for taking care of that. It is enough of an edge case that I didn't expect it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants