upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/main/tollgate_main.c
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-05-19 02:44:17 +0530
committerYour Name <you@example.com>2026-05-19 02:44:17 +0530
commit2ad2ed45f3ca82b1244a8b9e3e5efa89502413a9 (patch)
tree0f423dce2c22f8483b0c9f3c1bb642bf9ea5b01b /main/tollgate_main.c
parenta09be62cfab9a1d7f37c697c44c71aed70536e8c (diff)
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
Diffstat (limited to 'main/tollgate_main.c')
-rw-r--r--main/tollgate_main.c1
1 files changed, 1 insertions, 0 deletions
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,
84 84
85static void services_start_task(void *pvParameters) 85static void services_start_task(void *pvParameters)
86{ 86{
87 vTaskDelay(pdMS_TO_TICKS(3000));
87 start_services(); 88 start_services();
88 vTaskDelete(NULL); 89 vTaskDelete(NULL);
89} 90}