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 04:21:14 +0530
committerYour Name <you@example.com>2026-05-19 04:21:14 +0530
commitaa58b47996083f36e3587b8e10f9bbb681610491 (patch)
tree4c845da2ee4b217a2c77deea3b10dd8d288d1b09 /main/tollgate_main.c
parent9f7dd94029c8dc12117494548f5f32221a729307 (diff)
feat: web-based WiFi setup via captive portal, portrait-only display
- Remove touchscreen WiFi setup (touch.c, keyboard.c, wifi_setup.c from build) - Remove offscreen buffer and landscape rotation from axs15231b driver - Add /setup HTML page with WiFi scan/connect via captive portal - Add /wifi/scan, /wifi/connect, /wifi/status HTTP endpoints - Display shows SETUP_PENDING (QR + SSID + setup URL) when unconfigured - Display shows ERROR with setup URL when upstream is down - All 101 unit tests pass, builds and flashes to Board C
Diffstat (limited to 'main/tollgate_main.c')
-rw-r--r--main/tollgate_main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/tollgate_main.c b/main/tollgate_main.c
index 59d25f5..9421e16 100644
--- a/main/tollgate_main.c
+++ b/main/tollgate_main.c
@@ -325,8 +325,11 @@ void app_main(void)
325 tcfg->mint_url, tcfg->price_per_step, "connecting..."); 325 tcfg->mint_url, tcfg->price_per_step, "connecting...");
326 326
327 if (tollgate_config_get_wifi(&(wifi_config_t){0}) != ESP_OK) { 327 if (tollgate_config_get_wifi(&(wifi_config_t){0}) != ESP_OK) {
328 ESP_LOGI(TAG, "No STA network configured, entering WiFi setup"); 328 ESP_LOGI(TAG, "No STA network configured, starting setup mode");
329 display_enter_wifi_setup(); 329 char portal_url[128];
330 snprintf(portal_url, sizeof(portal_url), "http://%s/", tcfg->ap_ip_str);
331 display_update(NULL, 0, 0, portal_url, NULL, 0, "setup mode");
332 display_set_state(DISPLAY_SETUP_PENDING);
330 xTaskCreate(services_start_task, "svc_start", 32768, NULL, 5, NULL); 333 xTaskCreate(services_start_task, "svc_start", 32768, NULL, 5, NULL);
331 } 334 }
332 335