Porównaj commity

...

2 Commity

Autor SHA1 Wiadomość Data
Tayfun ULU da27e14704
Disable to AP mode after connection
correct place.
2023-01-01 13:05:54 +03:00
Tayfun ULU 9c5865307a
waiting time is increased
because some modem need more time to connect.
2023-01-01 13:02:42 +03:00
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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: