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

net, wioterminal: connect to access point claims success even if it has failed #636

Closed deadprogram closed 4 months ago

deadprogram commented 5 months ago

Tried to use the wioterminal with the latest dev branch, and it claimed to connect to a WiFi access point that was not actually turned on at the time. :ghost:

$ tinygo flash -size short -target wioterminal -ldflags="-X main.ssid=noexist -X main.pass=dsfsdf" -monitor ./examples/net/ntpclient/
   code    data     bss |   flash     ram
 110112    2508   10128 |  112620   12636
Connected to /dev/ttyACM0. Press Ctrl-C to exit.

Realtek rtl8720dn Wifi network device driver (rtl8720dn)

Driver version           : 0.0.1
RTL8720 firmware version : 2.1.2
MAC address              : 2c:f7:f1:1b:48:35

Connecting to Wifi SSID 'noexist'...CONNECTED
scottfeldman commented 5 months ago

Minimum wifi passphrase is 8 chars...I think that's the root of the problem, but need to look at the logic that checks the connection...

scottfeldman commented 5 months ago

Fixed in https://github.com/tinygo-org/drivers/pull/637

deadprogram commented 4 months ago

Closing as completed in the most recent release.