zenaro147 / PicoAdapterGB

Raspberry Pi Pico Code for Mobile Adapter GB emulation with real HW!
GNU General Public License v3.0
30 stars 4 forks source link

Feature request: Retry on WiFi failure #68

Open milkcanworld opened 6 days ago

milkcanworld commented 6 days ago

Thanks so much for making this! In my testing, I've ended up rebooting the Mobile Adapters I've built quite a bit. Oftentimes after one's just been connected then unplugged and replugged, connecting to my router fails with a bad auth error on the next connection attempt:

connect status: joining
connect status: bad auth
Failed to connect. Error: -7
Error during WiFi connection!

and I have to unplug the Pico and plug it in again to get things going. It would be useful if the adapter retried the connection in this case.

zenaro147 commented 6 days ago

Hi @milkcanworld ! Thanks for your suggestion. Yeah, this is a quite common issue using pico W (sometimes I have the same issue). I already thought about that, to be honest hahahah

But try to use at least WPA2 on your router (iirc, WPA3 is not supported yet).. you can use the mixed one (WPA2/WPA3).

Also try to make a test connecting the the device closer to your router. The antenna on pico W is not the best one, and sometimes can get interference/bad signal.

Also, always use a stable/trusted power source/cable to power the pico