![]() |
Morse Micro IoT SDK
2.12.3
|
API for executing Device Provisioning Protocol (DPP), also known as Wi-Fi Easy Connect.
Data Structures | |
| struct | mmwlan_dpp_cb_args |
| Structure passed back when a DPP event occurs. More... | |
| struct | mmwlan_dpp_qr_args |
| Structure to hold the QR enrollee specific arguments for the DPP process. More... | |
| struct | mmwlan_dpp_args |
| Structure to hold the arguments used for the DPP process. More... | |
Macros | |
| #define | MMWLAN_DPP_BOOTSTRAP_KEY_MAX_LEN 128 |
| Maximum length (in bytes) of a DER-encoded bootstrap private key. More... | |
| #define | MMWLAN_DPP_ARGS_INIT |
| Initializer for mmwlan_dpp_args. More... | |
Functions | |
| enum mmwlan_status | mmwlan_dpp_start (const struct mmwlan_dpp_args *args) |
| Function to start the Device Provisioning Protocol (DPP) process. More... | |
| enum mmwlan_status | mmwlan_dpp_stop (void) |
| Function to stop the DPP process. More... | |
| enum mmwlan_status | mmwlan_dpp_get_uri (char *uri_buf, size_t buf_len) |
| Retrieve the DPP bootstrap URI for the current QR enrollee session. More... | |
| #define MMWLAN_DPP_ARGS_INIT |
Initializer for mmwlan_dpp_args.
| #define MMWLAN_DPP_BOOTSTRAP_KEY_MAX_LEN 128 |
Reason codes for MMWLAN_DPP_EVT_AUTH_FAILURE.
Reason codes for MMWLAN_DPP_EVT_CONF_FAILED.
| enum mmwlan_dpp_event |
Enumeration of DPP events.
| enum mmwlan_dpp_mode |
| enum mmwlan_dpp_pb_result |
Enumeration of results for MMWLAN_DPP_EVT_PB_RESULT.
| enum mmwlan_status mmwlan_dpp_get_uri | ( | char * | uri_buf, |
| size_t | buf_len | ||
| ) |
Retrieve the DPP bootstrap URI for the current QR enrollee session.
This can be called after DPP has successfully started in QR Enrollee mode (see mmwlan_dpp_start()). The URI is derived from the bootstrap private key and can be encoded as a QR code for scanning by a DPP configurator.
| [out] | uri_buf | Buffer to copy the null-terminated URI string into. |
| buf_len | Size of uri_buf in bytes. |
MMWLAN_SUCCESS on success, else an appropriate error code. | enum mmwlan_status mmwlan_dpp_start | ( | const struct mmwlan_dpp_args * | args | ) |
Function to start the Device Provisioning Protocol (DPP) process.
This function will return once DPP has successfully started. Feedback will be provided via the dpp_event_cb.
mmwlan_dpp_stop() MUST be called before mmwlan_shutdown() is called.| args | Reference to the dpp arguments to use. |
MMWLAN_SUCCESS on success, else an appropriate error code. | enum mmwlan_status mmwlan_dpp_stop | ( | void | ) |
Function to stop the DPP process.
MMWLAN_SUCCESS on success, else an appropriate error code.