Morse Micro IoT SDK  2.9.7
dpp.c File Reference

Detailed Description

DPP example application.

Note
It is assumed that you have followed the steps in the Getting Started guide and are therefore familiar with how to build, flash, and monitor an application using the MM-IoT-SDK framework.

Definition in file dpp.c.

#include <stdio.h>
#include <string.h>
#include "mmutils.h"
#include "mmosal.h"
#include "mmwlan.h"
#include "mmconfig.h"
#include "mm_app_common.h"
Include dependency graph for dpp.c:

Go to the source code of this file.

Functions

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. More...
 
static void dpp_event_handler (const struct mmwlan_dpp_cb_args *dpp_event, void *arg)
 Function to handle dpp events. More...
 
void app_init (void)
 Main entry point to the application. More...
 

Function Documentation

◆ app_init()

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 99 of file dpp.c.

◆ dpp_event_handler()

static void dpp_event_handler ( const struct mmwlan_dpp_cb_args dpp_event,
void *  arg 
)
static

Function to handle dpp events.

Parameters
dpp_eventReference to dpp event argument structure
argUser argument that was registered when mmwlan_dpp_start() was called.

Definition at line 54 of file dpp.c.

◆ mmwlan_dpp_pb_result_to_string()

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.

Parameters
resultThe enumeration value of type enum mmwlan_dpp_pb_result to be converted.
Returns
A constant string describing the result. If the input is not a recognized enumeration value, the string "Unknown Result" is returned.

Definition at line 33 of file dpp.c.