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

Improve webinterface #16

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

TilCreator
Copy link
Contributor

This makes the web interface more mobile friendly and allows the input of custom SSIDs, so it is possible to connect to hidden WiFis.

wifimgr.py Outdated Show resolved Hide resolved
wifimgr.py Outdated
</html>
""" % dict(ssid=ssid)
""".format(html_head, ssid)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here.

wifimgr.py Outdated Show resolved Hide resolved
@@ -280,8 +372,7 @@ def start(port=80):
client, addr = server_socket.accept()
print('client connected from', addr)
try:
client.settimeout(5.0)

client.settimeout(15.0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a comment here why such a long timeout is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It fixed the timeout that some times occured on the not connected page.

<li>
{ssid}
</li>
</a>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this valid html?: a li text /li /a

or should it be rather?: li a text /a /li

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a is not display: block ( or similar ), so I see no problem.

wifimgr.py Outdated Show resolved Hide resolved
@DusKing1
Copy link

DusKing1 commented Mar 5, 2022

@TilCreator hi there I'm trying to use this code, but I get ECONNRESET from line 240, how can I fix this problem? Micropython 1.18.0 with ESP32. Thanks!

@TilCreator
Copy link
Contributor Author

I didn't touch these files for years, so sry, no clue

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

4 participants