101#define PROV_WINDOW_MIN 15U
280 char *value,
size_t value_n);
Network bring-up: Wi-Fi station (init/scan/connect/RSSI) and SNTP time sync. No application-protocol ...
void prov_auth_resolve(bool grant)
Answer a pending authorisation request from the panel.
bool prov_pair_code(char *out, size_t out_size)
The 4-digit pairing code of the browser asking to be let in.
void prov_set_step(prov_step_t step)
Tell the portal which wizard step is current.
prov_step_t prov_step(void)
The current step.
const char * prov_ap_pass(void)
AP passphrase, or "" while no portal is up.
void prov_set_note(const char *note)
Put a one-line message on the page.
bool prov_pending_commit(bool accept)
Resolve a pending proposal from the panel.
prov_ask_t
What the panel is being asked to accept, for prov_pending.
void prov_set_wifi_only(void)
Cut the wizard down to the Wi-Fi step, with no admin code.
bool prov_wifi_only(void)
Whether the portal is the cut-down Wi-Fi-only flow.
const char * prov_qr_payload(void)
What the panel's QR code should carry.
const char * prov_ap_ssid(void)
AP SSID, or "" while no portal is up.
bool prov_propose(prov_ask_t kind, const char *addr)
Propose a value on behalf of the panel itself.
prov_step_t
Where the wizard has got to.
bool prov_authed(void)
Whether the browser session is authorised to change anything.
bool prov_auth_pending(void)
Whether a browser has asked to be authorised.
prov_mode_t prov_mode(void)
Which mode is running, or PROV_MODE_OFF.
void prov_stop(void)
Stop the portal, drop the AP, and withdraw anything unaccepted.
void prov_set_scan(const net_wifi_ap_t *aps, uint16_t n)
Hand the portal a Wi-Fi scan for the browser to choose from.
prov_mode_t
Which of the two portals is running.
bool prov_pending(prov_ask_t *kind, char *label, size_t label_n, char *value, size_t value_n)
Fetch the value a browser proposed but nobody has accepted.
bool prov_start(prov_mode_t mode, ui_event_cb_t cb)
Raise the portal.
unsigned prov_window_left_min(void)
Minutes left before the portal closes itself, 0 once it has.
A scanned access point (subset of fields the UI needs).
Touchscreen UI API: screens, events and transaction states for the CYD (ILI9341 + XPT2046) payment fl...
void(* ui_event_cb_t)(ui_event_t event, uint64_t payload)
Callback invoked from the UI task on user interaction.