WINC1500 Mode Change Example.
Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.
#include "asf.h"
#include "main.h"
#include <string.h>
#include "driver/include/m2m_wifi.h"
#include "driver/source/nmasic.h"
Macros | |
#define | DELAY_FOR_MODE_CHANGE (500) |
#define | HOLD_TIME_IN_MODE (30000) |
#define | STRING_EOL "\r\n" |
#define | STRING_HEADER |
Functions | |
static void | configure_console (void) |
Configure UART console. More... | |
static int8_t | enable_disable_ap_mode (void) |
AP mode. More... | |
int | main (void) |
Main application function. More... | |
#define DELAY_FOR_MODE_CHANGE (500) |
Referenced by main().
#define HOLD_TIME_IN_MODE (30000) |
Referenced by enable_disable_ap_mode().
#define STRING_EOL "\r\n" |
#define STRING_HEADER |
Referenced by main().
|
static |
Configure UART console.
References uart_rs232_options::baudrate, CONF_UART, CONF_UART_BAUDRATE, CONF_UART_CHAR_LENGTH, CONF_UART_PARITY, CONF_UART_STOP_BITS, stdio_serial_init(), and sysclk_enable_peripheral_clock().
Referenced by main().
|
static |
AP mode.
Initializes the AP mode for a while and terminate.
References tstrM2MAPConfig::au8DHCPServerIP, tstrM2MAPConfig::au8SSID, HOLD_TIME_IN_MODE, M2M_SUCCESS, m2m_wifi_disable_ap(), m2m_wifi_enable_ap(), MAIN_WLAN_AP_CHANNEL, MAIN_WLAN_AUTH, MAIN_WLAN_SSID, nm_bsp_sleep(), tstrM2MAPConfig::u8ListenChannel, and tstrM2MAPConfig::u8SecType.
Referenced by main().
int main | ( | void | ) |
Main application function.
Application entry point.
Station mode. Device started as station mode basically.
AP mode. Turn On and off AP mode.
References board_init(), configure_console(), DELAY_FOR_MODE_CHANGE, enable_disable_ap_mode(), M2M_SUCCESS, m2m_wifi_init(), nm_bsp_init(), nm_bsp_sleep(), STRING_HEADER, and sysclk_init().