]> git.scottworley.com Git - tattlekey/commitdiff
client: Initial wifi connection time: 10s → 90s
authorScott Worley <scottworley@scottworley.com>
Sun, 8 Oct 2023 07:14:57 +0000 (00:14 -0700)
committerScott Worley <scottworley@scottworley.com>
Wed, 11 Oct 2023 01:48:19 +0000 (18:48 -0700)
No reason to give up so aggressively.

Be robust against the AP restarting, which takes ~1 minute.

client/tattlekey.c

index 05488eaa7c3a1e02d17170bd6aaa4116afcfad6d..45059f6ed2e832b8457c64f4696640d0a6c44e1a 100644 (file)
@@ -25,7 +25,7 @@ int main() {
   cyw43_arch_enable_sta_mode();
   signal(2, 200);
   if (cyw43_arch_wifi_connect_timeout_ms(wifi_ssid, wifi_pass,
   cyw43_arch_enable_sta_mode();
   signal(2, 200);
   if (cyw43_arch_wifi_connect_timeout_ms(wifi_ssid, wifi_pass,
-                                         CYW43_AUTH_WPA2_AES_PSK, 10000))
+                                         CYW43_AUTH_WPA2_AES_PSK, 90000))
     signal_error_by_blinking();
   signal(3, 200);
 
     signal_error_by_blinking();
   signal(3, 200);