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

problem when wifi password is only numbers #1

Closed
nedoskiv opened this issue Jan 25, 2018 · 3 comments
Closed

problem when wifi password is only numbers #1

nedoskiv opened this issue Jan 25, 2018 · 3 comments

Comments

@nedoskiv
Copy link

I have found the issue, and fixed it, in order to do edit init_wifi.lua and replace:

cfg.pwd = p:len()>=8 and p or nil

with:

cfg.pwd = tostring(p):len()>=8 and p or nil

@bondrogeen
Copy link
Owner

( cfg.pwd = p:len()>=8 and p or nil ) == ( cfg.pwd = tostring(p):len()>=8 and p or nil )

What exactly does not work?
This is the same code, only a different approach.

@nedoskiv
Copy link
Author

lua: init_wifi.lua:4: attempt to index a number value
stack traceback:
init_wifi.lua:4: in function <init_wifi.lua:1>
init.lua:11: in main chunk
[C]: ?

it is same code, with a little fix, guess it is json issue to make variable number when it contains only numbers

@bondrogeen
Copy link
Owner

I did not think about it, I will correct it.
Thank you.

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