26#define WIFI_SAVED_MAX 6
81bool wifi_saved_add(
const char *ssid,
const char *password, uint8_t security);
bool wifi_saved_add(const char *ssid, const char *password, uint8_t security)
Add or update a network in saved list. If SSID already exists, updates in-place. If not,...
bool wifi_saved_store(int index, const wifi_saved_entry_t *entry)
Store a network entry to OPTIGA slot.
bool wifi_saved_probe_ready(void)
May be true immediately after probe_start() — handle the cached fast path.
int wifi_saved_find(const char *ssid)
Find a saved network by SSID.
bool wifi_saved_probe_start(void)
Sends the OPTIGA presence probe; strict start → ready → finish order.
bool wifi_saved_read_ready(void)
Not ready means try again next tick.
bool wifi_saved_read_result(wifi_saved_entry_t *out)
Fills a caller-owned entry; false means the slot is absent.
int wifi_saved_count(void)
Count number of valid saved networks.
void wifi_saved_probe_finish(void)
Exactly once per probe, only after probe_ready(); sets the OPTIGA / RAM-fallback state.
int wifi_saved_load_all(wifi_saved_entry_t *entries)
Load all saved networks into an array.
bool wifi_saved_load(int index, wifi_saved_entry_t *out)
Load a saved network from OPTIGA slot.
bool wifi_saved_erase(int index)
Erase a saved network from OPTIGA slot.
bool wifi_saved_read_start(int index)
One in-flight slot read at a time; a false return skips the slot.
wifi_saved_entry_t
Definition wifi_saved.h:36
struct __attribute__((packed))
Definition wifi_saved.h:29