mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-16 21:03:23 +00:00
wioterminal: fix check for bad Wifi connect
rpc_wifi_connect() will return 0 on successful connection, so check for that. Also, check that if passphrase is given, that it's the minimum 8 chars per WPA Wifi.
This commit is contained in:
@@ -13,6 +13,7 @@ var (
|
||||
ErrConnectFailed = errors.New("Connect failed")
|
||||
ErrConnectTimeout = errors.New("Connect timed out")
|
||||
ErrMissingSSID = errors.New("Missing WiFi SSID")
|
||||
ErrShortPassphrase = errors.New("Invalid Wifi Passphrase < 8 chars")
|
||||
ErrAuthFailure = errors.New("Wifi authentication failure")
|
||||
ErrAuthTypeNoGood = errors.New("Wifi authorization type not supported")
|
||||
ErrConnectModeNoGood = errors.New("Connect mode not supported")
|
||||
|
||||
Reference in New Issue
Block a user