![]() |
Morse Micro IoT SDK
2.11.2
|
Relay Mode Example Application.
Definition in file relay_mode.c.
#include <string.h>#include "mmwlan.h"#include "mmconfig.h"#include "mmosal.h"#include "mmutils.h"#include "mm_app_common.h"#include "mm_app_loadconfig.h"#include "mmlog.h"
Go to the source code of this file.
Macros | |
| #define | AP_SSID MorseMicroIoT |
| SSID of the AP. More... | |
| #define | SAE_PASSPHRASE 12345678 |
| Passphrase of the AP (ignored if security type is not SAE). More... | |
| #define | SECURITY_TYPE MMWLAN_SAE |
| Security type (. More... | |
| #define | PMF_MODE MMWLAN_PMF_REQUIRED |
| Protected Management Frames (PMF) mode (. More... | |
| #define | MAX_STAS MMWLAN_DEFAULT_AP_MAX_STAS |
| The maximum number of stations that can connect to the AP. More... | |
| #define | _STRINGIFY(x) #x |
| Stringify macro. More... | |
| #define | STRINGIFY(x) _STRINGIFY(x) |
| Convert the content of the given macro to a string. More... | |
Functions | |
| static char * | mmwlan_ap_sta_state_to_str (enum mmwlan_ap_sta_state state) |
Function to convert mmwlan_ap_sta_state enumeration to a human readable string. More... | |
| static void | handle_ap_sta_status (const struct mmwlan_ap_sta_status *sta_status, void *arg) |
| Handler for AP STA Status callback. More... | |
| void | load_mmwlan_ap_args (struct mmwlan_ap_args *ap_args) |
| Loads the provided structure with initialization parameters read from config store. More... | |
| void | app_init (void) |
| Main entry point to the application. More... | |
Variables | |
| uint32_t | opaque_argument_value |
| A throw away variable for checking that the opaque argument is correct. More... | |
| #define _STRINGIFY | ( | x | ) | #x |
| #define AP_SSID MorseMicroIoT |
| #define MAX_STAS MMWLAN_DEFAULT_AP_MAX_STAS |
The maximum number of stations that can connect to the AP.
Must not be greater than MMWLAN_AP_MAX_STAS_LIMIT.
Definition at line 60 of file relay_mode.c.
| #define PMF_MODE MMWLAN_PMF_REQUIRED |
Protected Management Frames (PMF) mode (.
Definition at line 52 of file relay_mode.c.
| #define SAE_PASSPHRASE 12345678 |
Passphrase of the AP (ignored if security type is not SAE).
(Do not quote; it will be stringified.)
Definition at line 40 of file relay_mode.c.
| #define SECURITY_TYPE MMWLAN_SAE |
| #define STRINGIFY | ( | x | ) | _STRINGIFY(x) |
Convert the content of the given macro to a string.
Definition at line 66 of file relay_mode.c.
| void app_init | ( | void | ) |
Main entry point to the application.
This will be invoked in a thread once operating system and hardware initialization has completed. It may return, but it does not have to.
Definition at line 220 of file relay_mode.c.
|
static |
Handler for AP STA Status callback.
| sta_status | STA status information. |
| arg | Opaque argument that was provided when the callback was registered. |
Definition at line 104 of file relay_mode.c.
| void load_mmwlan_ap_args | ( | struct mmwlan_ap_args * | ap_args | ) |
Loads the provided structure with initialization parameters read from config store.
If a specific parameter is not found then default values are used. Use this function to load defaults before calling mmwlan_ap_enable().
| ap_args | A pointer to the mmwlan_ap_args to return the settings in. |
Definition at line 126 of file relay_mode.c.
|
static |
Function to convert mmwlan_ap_sta_state enumeration to a human readable string.
| state | State enum to convert |
Definition at line 78 of file relay_mode.c.
| uint32_t opaque_argument_value |
A throw away variable for checking that the opaque argument is correct.
Definition at line 69 of file relay_mode.c.