tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
585 stars 180 forks source link

wioterminal: fix check for bad Wifi connect #637

Closed scottfeldman closed 5 months ago

scottfeldman commented 5 months ago

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.

scottfeldman commented 5 months ago

Fixes https://github.com/tinygo-org/drivers/issues/636

deadprogram commented 5 months ago

Thanks for the fix @scottfeldman now merging.