![]() |
Morse Micro IoT SDK
2.9.7
|
Example application to demonstrate using the MMWLAN scan subsystem.
This example application provides a very basic demonstration of the MMWLAN scan API. It simply initiates a scan (with default arguments) and displays all results. Note that the MMWLAN scan implementation does not sort or cache scan results. As such, it is possible that a single Access Point may appear multiple times in the results displayed by this example application.
Definition in file scan.c.
#include <string.h>#include "mmosal.h"#include "mmutils.h"#include "mmwlan.h"#include "mm_app_loadconfig.h"
Go to the source code of this file.
Macros | |
| #define | ANSI_BOLD "\x1b[1m" |
| ANSI escape sequence for bold text. More... | |
| #define | ANSI_RESET "\x1b[0m" |
| ANSI escape sequence to reset font. More... | |
| #define | MAC_ADDR_STR_LEN (18) |
| Length of string representation of a MAC address (i.e., "XX:XX:XX:XX:XX:XX") including null terminator. More... | |
Functions | |
| static void | scan_rx_callback (const struct mmwlan_scan_result *result, void *arg) |
| Scan rx callback. More... | |
| static void | scan_complete_callback (enum mmwlan_scan_state state, void *arg) |
| Scan complete callback. More... | |
| void | app_init (void) |
| Main entry point to the application. More... | |
Variables | |
| static int | num_scan_results |
| Number of results found. More... | |
| #define ANSI_BOLD "\x1b[1m" |
| #define ANSI_RESET "\x1b[0m" |
| #define MAC_ADDR_STR_LEN (18) |
| void app_init | ( | void | ) |
|
static |
|
static |