usedbytes / picowota

A bootloader for OTA WiFi code upload to a Raspberry Pi Pico W
BSD 3-Clause "New" or "Revised" License
116 stars 21 forks source link

Add retries for wifi setup #21

Open Ponderosa opened 4 months ago

Ponderosa commented 4 months ago

Instead of locking the mcu if we fail to initalize the CYW43 or conecting to a wifi network, we should retry, a definable number of times, and return to the application code if possible.

Testing: Forced a retry of wifi connect by using a non existent network, with 3 retries and delay of 1000ms between retries.