kopia lustrzana https://github.com/tayfunulu/WiFiManager
sta must be active for scanning, print exception
rodzic
d0b8fadd84
commit
5945702683
|
@ -33,6 +33,7 @@ def get_connection():
|
|||
profiles = read_profiles()
|
||||
|
||||
# Search WiFis in range
|
||||
wlan_sta.active(True)
|
||||
networks = wlan_sta.scan()
|
||||
|
||||
AUTHMODE = {0: "open", 1: "WEP", 2: "WPA-PSK", 3: "WPA2-PSK", 4: "WPA/WPA2-PSK"}
|
||||
|
@ -51,8 +52,8 @@ def get_connection():
|
|||
if connected:
|
||||
break
|
||||
|
||||
except OSError:
|
||||
pass
|
||||
except OSError as e:
|
||||
print("exception", str(e))
|
||||
|
||||
# start web server for connection manager:
|
||||
if not connected:
|
||||
|
|
Ładowanie…
Reference in New Issue