drivers icon indicating copy to clipboard operation
drivers copied to clipboard

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

Open deadprogram opened this issue 1 year ago • 2 comments
trafficstars

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

deadprogram avatar Jan 10 '24 16:01 deadprogram

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 avatar Jan 10 '24 23:01 scottfeldman

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

scottfeldman avatar Jan 11 '24 00:01 scottfeldman

Closing as completed in the most recent release.

deadprogram avatar Feb 28 '24 08:02 deadprogram