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

Not working as expected in a new network #18

Open
alexanmtz opened this issue Mar 18, 2019 · 2 comments
Open

Not working as expected in a new network #18

alexanmtz opened this issue Mar 18, 2019 · 2 comments

Comments

@alexanmtz
Copy link

After successfully setup a connection, the script is not working properly in a new network. It should be able to switch mode as the diagram on README if the current network is not found, so I would be able to setup a new one when runs 192.168.4.1?

@Karijn
Copy link

Karijn commented Feb 4, 2022

the Join on line 80 takes an empty string as separator, this should be a newline.
f.write(''.join(lines))
should be
f.write('\n'.join(lines))

@ThomasWaldmann
Copy link
Collaborator

@Karijn

lines.append("%s;%s\n" % (ssid, password))

There is the "\n" you were missing.

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

3 participants