SDK for TESAIoT Dev Kit
API reference & tutorials (ModusToolbox)
Loading...
Searching...
No Matches
wifi_saved.h File Reference
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Macros

#define WIFI_SAVED_MAX   6

Functions

struct __attribute__ ((packed))
bool wifi_saved_load (int index, wifi_saved_entry_t *out)
 Load a saved network from OPTIGA slot.
bool wifi_saved_store (int index, const wifi_saved_entry_t *entry)
 Store a network entry to OPTIGA slot.
bool wifi_saved_erase (int index)
 Erase a saved network from OPTIGA slot.
int wifi_saved_find (const char *ssid)
 Find a saved network by SSID.
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, uses the first empty slot (or overwrites slot 0 if full).
int wifi_saved_count (void)
 Count number of valid saved networks.
int wifi_saved_load_all (wifi_saved_entry_t *entries)
 Load all saved networks into an array.
bool wifi_saved_probe_start (void)
 Sends the OPTIGA presence probe; strict start → ready → finish order.
bool wifi_saved_probe_ready (void)
 May be true immediately after probe_start() — handle the cached fast path.
void wifi_saved_probe_finish (void)
 Exactly once per probe, only after probe_ready(); sets the OPTIGA / RAM-fallback state.
bool wifi_saved_read_start (int index)
 One in-flight slot read at a time; a false return skips the slot.
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.

Variables

 wifi_saved_entry_t

Macro Definition Documentation

◆ WIFI_SAVED_MAX

#define WIFI_SAVED_MAX   6

Function Documentation

◆ __attribute__()

struct __attribute__ ( (packed) )

Variable Documentation

◆ wifi_saved_entry_t

wifi_saved_entry_t