Files
espresso_frame/firmware/main/qr_onboarding.h
tfaour ecc42f23c0 Redesign setup screen: title + two-step layout with a config QR
Adds a "2. CONFIGURATION" step alongside WiFi setup: a second QR code
linking straight to the captive portal page (http://<ap-ip>/), for anyone
who's joined the AP but wants a one-scan shortcut to the config form
instead of relying on the captive-portal popup. The AP netif is now
created (but not started) before the display renders, since the AP's IP
is fixed at netif creation and needed for this QR before the network is
actually up.

Pulls the pixel/text drawing primitives (previously private to
qr_onboarding.c) out into epd_draw.c/.h so the upcoming status screen can
reuse them instead of duplicating.
2026-07-18 14:07:56 -04:00

14 lines
554 B
C

#pragma once
#include "esp_err.h"
/**
* Renders the two-step setup screen onto the e-ink panel: a WiFi-join QR
* code (with SSID/password also printed as plaintext, for anyone
* provisioning from a device that can't scan a QR code) and a second QR
* code linking to the captive portal config page at config_url. Call after
* epd_init() and before the softAP goes up, so the instructions are
* already on-screen by the time the network is joinable.
*/
esp_err_t qr_onboarding_show(const char *ssid, const char *password, const char *config_url);