kopia lustrzana https://github.com/tayfunulu/WiFiManager
Add little delay to make sure the client gets the success message
rodzic
9d3094862a
commit
4ad3bec1ea
|
@ -214,6 +214,9 @@ def handle_configure(client, request):
|
||||||
profiles = {}
|
profiles = {}
|
||||||
profiles[ssid] = password
|
profiles[ssid] = password
|
||||||
write_profiles(profiles)
|
write_profiles(profiles)
|
||||||
|
|
||||||
|
time.sleep(5)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
response = """\
|
response = """\
|
||||||
|
@ -290,4 +293,3 @@ def start(port=80):
|
||||||
handle_not_found(client, url)
|
handle_not_found(client, url)
|
||||||
finally:
|
finally:
|
||||||
client.close()
|
client.close()
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue