From 2ad2ed45f3ca82b1244a8b9e3e5efa89502413a9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 19 May 2026 02:44:17 +0530 Subject: feat: WPA auto-detect, STA connectivity fix, lwip crash fix - Add wifi_auth_mode config field (WPA2/WPA3) parsed from config.json - Default to WPA2 (accepts both WPA2 and WPA3 networks) - Replace hardcoded WIFI_AUTH_WPA3_PSK with runtime threshold mapping - Reduce MINT_HEALTH_PROBE_INTERVAL_S from 300 to 30 for testing - Add 3s delay before service start + 5s DNS stabilization for health probes - Fixes lwip mem_free crash caused by concurrent HTTP at boot Verified on hardware: - STA connects to WPA2 home router (Got IP:192.168.2.16) - All 4 mint health probes complete successfully - API endpoints return correct data with reachable mint filtering - 4/4 wallets initialized with real keysets from live mints --- main/tollgate_main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'main/tollgate_main.c') diff --git a/main/tollgate_main.c b/main/tollgate_main.c index a39ccc9..228d8ef 100644 --- a/main/tollgate_main.c +++ b/main/tollgate_main.c @@ -84,6 +84,7 @@ static void wifi_event_handler(void *arg, esp_event_base_t event_base, static void services_start_task(void *pvParameters) { + vTaskDelay(pdMS_TO_TICKS(3000)); start_services(); vTaskDelete(NULL); } -- cgit v1.2.3