42 return "Session Overlap";
44 return "Unknown Result";
56 struct mmosal_semb *semb = (
struct mmosal_semb *)arg;
101 printf(
"\n\nSTA DPP Connect Example (Built " __DATE__
" " __TIME__
")\n\n");
const char * mmwlan_dpp_pb_result_to_string(enum mmwlan_dpp_pb_result result)
Convert a DPP push button result code to its string representation.
static void dpp_event_handler(const struct mmwlan_dpp_cb_args *dpp_event, void *arg)
Function to handle dpp events.
void app_init(void)
Main entry point to the application.
int mmconfig_write_string(const char *key, const char *value)
Writes the null terminated string to persistent store location identified by key.
#define MMOSAL_ASSERT(expr)
Assert that the given expression evaluates to true and abort execution if not.
int mmosal_printf(const char *format,...)
OS abstracted version of printf used by morselib.
bool mmosal_semb_wait(struct mmosal_semb *semb, uint32_t timeout_ms)
Wait for a counting semaphore.
struct mmosal_semb * mmosal_semb_create(const char *name)
Create a new binary semaphore.
bool mmosal_semb_give(struct mmosal_semb *semb)
Give a binary semaphore.
enum mmwlan_status mmwlan_dpp_stop(void)
Function to stop the DPP process.
mmwlan_dpp_pb_result
Enumeration of results for MMWLAN_DPP_EVT_PB_RESULT.
enum mmwlan_status mmwlan_dpp_start(const struct mmwlan_dpp_args *args)
Function to start the Device Provisioning Protocol (DPP) process.
@ MMWLAN_DPP_PB_RESULT_SUCCESS
DPP push button process was successful.
@ MMWLAN_DPP_PB_RESULT_SESSION_OVERLAP
A session overlap occurred during the DPP push button process.
@ MMWLAN_DPP_PB_RESULT_ERROR
An error occurred during the DPP push button process.
@ MMWLAN_DPP_EVT_PB_RESULT
DPP push button result.
mmwlan_status
Enumeration of status return codes.
#define MMWLAN_SSID_MAXLEN
Maximum allowable length of an SSID.
@ MMWLAN_SUCCESS
The operation was successful.
Morse Micro application helper routines for initializing/de-initializing the Wireless LAN interface a...
void app_wlan_init(void)
Initializes the WLAN interface (and dependencies) using settings specified in the config store.
void app_wlan_start(void)
Starts the WLAN interface and connects to Wi-Fi using settings specified in the config store.
Structure to hold the arguments used for the DPP process.
void(* dpp_event_cb)(const struct mmwlan_dpp_cb_args *dpp_event, void *arg)
DPP event callback prototype.
Structure passed back when a DPP event occurs.
union mmwlan_dpp_cb_args::@2 args
Union of arguments for DPP events.
const uint8_t * ssid
SSID of the AP to connect to.
uint16_t ssid_len
Length of the SSID.
const char * passphrase
Passphrase, NULL terminated.
enum mmwlan_dpp_pb_result result
Result of DPP push button.
struct mmwlan_dpp_cb_args::@2::@3 pb_result
Argument for MMWLAN_DPP_EVT_PB_RESULT event.
enum mmwlan_dpp_event event
The DPP event that has occurred.