kopia lustrzana https://github.com/tayfunulu/WiFiManager
Porównaj commity
2 Commity
8c2c3b1acf
...
da27e14704
Autor | SHA1 | Data |
---|---|---|
Tayfun ULU | da27e14704 | |
Tayfun ULU | 9c5865307a |
|
@ -86,7 +86,7 @@ def do_connect(ssid, password):
|
|||
return None
|
||||
print('Trying to connect to %s...' % ssid)
|
||||
wlan_sta.connect(ssid, password)
|
||||
for retry in range(100):
|
||||
for retry in range(200):
|
||||
connected = wlan_sta.isconnected()
|
||||
if connected:
|
||||
break
|
||||
|
@ -94,7 +94,7 @@ def do_connect(ssid, password):
|
|||
print('.', end='')
|
||||
if connected:
|
||||
print('\nConnected. Network config: ', wlan_sta.ifconfig())
|
||||
wlan_ap.active(False)
|
||||
|
||||
else:
|
||||
print('\nFailed. Not Connected to: ' + ssid)
|
||||
return connected
|
||||
|
@ -212,6 +212,7 @@ def handle_configure(client, request):
|
|||
</html>
|
||||
""" % dict(ssid=ssid)
|
||||
send_response(client, response)
|
||||
wlan_ap.active(False)
|
||||
try:
|
||||
profiles = read_profiles()
|
||||
except OSError:
|
||||
|
|
Ładowanie…
Reference in New Issue