Microchip® Advanced Software Framework

common/components/wifi/winc1500/provision_enterprise_security/main.c File Reference

WINC1500 security connection with WPA/WPA2 enterprise.

Copyright (c) 2018-2021 Microchip Technology Inc. and its subsidiaries.

#include "asf.h"
#include "wifi_prov.h"
#include "main.h"
#include "driver/include/m2m_wifi.h"
#include "socket/include/socket.h"

Macros

#define STRING_EOL   "\r\n"
 
#define STRING_HEADER
 

Functions

static void configure_console (void)
 Configure UART console. More...
 
int main (void)
 Main application function. More...
 
static void wifi_cb (uint8_t u8MsgType, void *pvMsg)
 Callback to get the Wi-Fi status update. More...
 

Variables

static wifiProvisionParams wifiProvParam
 

#define STRING_EOL   "\r\n"
#define STRING_HEADER
Value:
"-- WINC1500 provisioning for enterprise security example --"STRING_EOL \
"-- "BOARD_NAME " --"STRING_EOL \
"-- Compiled: "__DATE__ " "__TIME__ " --"STRING_EOL
#define BOARD_NAME
Definition: fatfs_access_example.c:112
#define STRING_EOL
Definition: common/components/wifi/winc1500/provision_enterprise_security/main.c:139

Referenced by main().

static void configure_console ( void  )
static

Configure UART console.

References uart_rs232_options::baudrate, stdio_serial_init(), and sysclk_enable_peripheral_clock().

Referenced by main().

static void wifi_cb ( uint8_t  u8MsgType,
void *  pvMsg 
)
static

Callback to get the Wi-Fi status update.

Parameters
[in]u8MsgTypetype of Wi-Fi notification. Possible types are:
[in]pvMsgA pointer to a buffer containing the notification parameters (if any). It should be casted to the correct data type corresponding to the notification type.

References M2M_WIFI_CONNECTED, m2m_wifi_default_connect(), M2M_WIFI_DISCONNECTED, M2M_WIFI_REQ_DHCP_CONF, m2m_wifi_request_dhcp_client(), M2M_WIFI_RESP_CON_STATE_CHANGED, and tstrM2mWifiStateChanged::u8CurrState.

Referenced by main().

wifiProvisionParams wifiProvParam
static