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

Type of option 'password' should be string #646

Merged
merged 1 commit into from
Apr 9, 2016

Conversation

hoegertn
Copy link
Contributor

@hoegertn hoegertn commented Apr 9, 2016

When your wifi password contains only numbers and is long the cli converts it to a number with exponential representation. This breaks the configuration.

$ t2 wifi -n MySSID -p 432565XXXXXXXXXXXXXXXXXXXXXXXXXXXXX8743
INFO Looking for your Tessel...
INFO Connected to Tessel.
INFO Wifi Enabled.
INFO Wifi Connected. SSID: MySSID, password: 4.32565XXXXXXXXXXXXX+39, security: psk2

@rwaldron
Copy link
Contributor

rwaldron commented Apr 9, 2016

Great catch!

@rwaldron rwaldron merged commit fc24618 into tessel:master Apr 9, 2016
@hoegertn hoegertn deleted the feature/fixWifiPassword branch April 9, 2016 22:58
@rwaldron
Copy link
Contributor

rwaldron commented Apr 9, 2016

I'm trying to write a test for this and the test revealed that even with the type: "string" set, the value is being coerced into a number with an exponent part.

@hoegertn
Copy link
Contributor Author

hoegertn commented Apr 9, 2016

it worked on the cli. I was able to connect my wifi

@rwaldron
Copy link
Contributor

rwaldron commented Apr 9, 2016

I assumed that was the case—I didn't think you'd make the patch otherwise ;)

@rwaldron
Copy link
Contributor

rwaldron commented Apr 9, 2016

I'll worry about tests later, this stays in.

tikurahul pushed a commit to tikurahul/t2-cli that referenced this pull request Apr 10, 2016
@rwaldron
Copy link
Contributor

@hoegertn I totally forgot to make sure that you had signed the CLA. If you haven't done so, please do that here: http://dojofoundation.org/about/claForm

@hoegertn
Copy link
Contributor Author

done

@rwaldron
Copy link
Contributor

Brilliant! Thank you kindly

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

Successfully merging this pull request may close these issues.

None yet

2 participants