Microchip® Advanced Software Framework

wifi_prov.h File Reference

WiFi Provisioning configuration.

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

Data Structures

struct  tstr1xAuthTLSCredentials
 
struct  wifiProvisionParams
 

Macros

#define CERT_BUFFER_SIZE   1200
 
#define HTTP_PORT   443
 HTTP server defines. More...
 
#define KEY_BUFFER_SIZE   1700
 
#define POST_RESP   "HTTP/1.1 201"
 
#define PRIVATE_KEY_MOD_EXP_SIZE   256
 
#define PROV_WEB_PAGE_WEP_KEY_INDEX   (1)
 
#define PROV_WLAN_AUTH   M2M_WIFI_SEC_OPEN /* < Security manner */
 
#define PROV_WLAN_CHANNEL   (1) /* < Channel number */
 
#define PROV_WLAN_SOFTAP_SSID   "WINC1500_PROV_HTTP" /* < SSID */
 Wi-Fi Settings. More...
 
#define PROV_WLAN_SSID_MODE   SSID_MODE_VISIBLE
 
#define RX_BUF_SZ   SOCKET_BUFFER_MAX_LENGTH
 

Enumerations

enum  enteprise_sec_method {
  TLS = 1,
  MSCHAPV2
}
 

Functions

void wifi_ap_connect (wifiProvisionParams *provParams)
 Wi-Fi Provisioning ap connect function. More...
 
void wifi_ap_provision (wifiProvisionParams *provParams)
 Wi-Fi Provisioning main application function. More...
 

Variables

tstr1xAuthTLSCredentials tlsCredentials
 

#define CERT_BUFFER_SIZE   1200

Referenced by post_main_page().

#define HTTP_PORT   443

HTTP server defines.

Referenced by wifi_ap_provision().

#define KEY_BUFFER_SIZE   1700

Referenced by post_main_page().

#define POST_RESP   "HTTP/1.1 201"

Referenced by html_handler().

#define PRIVATE_KEY_MOD_EXP_SIZE   256
#define PROV_WEB_PAGE_WEP_KEY_INDEX   (1)

Referenced by wifi_ap_connect().

#define PROV_WLAN_AUTH   M2M_WIFI_SEC_OPEN /* < Security manner */

Referenced by wifi_ap_provision().

#define PROV_WLAN_CHANNEL   (1) /* < Channel number */

Referenced by wifi_ap_provision().

#define PROV_WLAN_SOFTAP_SSID   "WINC1500_PROV_HTTP" /* < SSID */

Wi-Fi Settings.

Referenced by wifi_ap_provision().

#define PROV_WLAN_SSID_MODE   SSID_MODE_VISIBLE
#define RX_BUF_SZ   SOCKET_BUFFER_MAX_LENGTH

Enumerator
TLS 
MSCHAPV2 

void wifi_ap_connect ( wifiProvisionParams provParams)

Wi-Fi Provisioning ap connect function.

This is a will connect to the AP with the credentials received in wifiProvisionParams The user is expected to perfom m2m_wifi_init() before calling this api.

References tstr1xAuthCredentials::au8Passwd, tstrM2MProvisionInfo::au8Password, tstrM2MProvisionInfo::au8SSID, tstr1xAuthCredentials::au8UserName, tstrM2mWifiWepParams::au8WepKey, tstrAuth1xMschap2::bPrependDomain, tstrAuth1xTls::bPrependDomain, tstrAuth1xMschap2::bUnencryptedUserName, tstrAuth1xTls::bUnencryptedUserName, tstrNetworkId::enuChannel, wifiProvisionParams::httpMsChapv2Params, wifiProvisionParams::httpProvParams, wifiProvisionParams::httpTLSParams, wifiProvisionParams::httpWepParams, m2m_strlen(), M2M_WIFI_CH_ALL, m2m_wifi_connect(), m2m_wifi_connect_1x_mschap2(), m2m_wifi_connect_1x_tls(), M2M_WIFI_SEC_802_1X, M2M_WIFI_SEC_OPEN, M2M_WIFI_SEC_WEP, M2M_WIFI_SEC_WPA_PSK, MSCHAPV2, NULL, PROV_WEB_PAGE_WEP_KEY_INDEX, tstrNetworkId::pu8Bssid, tstrAuth1xTls::pu8Certificate, tstrAuth1xMschap2::pu8Domain, tstrAuth1xTls::pu8Domain, tstrAuth1xMschap2::pu8Password, tstrAuth1xTls::pu8PrivateKey_Exp, tstrAuth1xTls::pu8PrivateKey_Mod, tstrNetworkId::pu8Ssid, tstrAuth1xMschap2::pu8UserName, tstrAuth1xTls::pu8UserName, wifiProvisionParams::sec_method, TLS, tstrAuth1xTls::u16CertificateLen, tstrAuth1xMschap2::u16PasswordLen, tstrAuth1xTls::u16PrivateKeyLen, tstrAuth1xMschap2::u16UserNameLen, tstrAuth1xTls::u16UserNameLen, tstrM2mWifiWepParams::u8KeyIndx, tstrM2mWifiWepParams::u8KeySz, tstrM2MProvisionInfo::u8SecType, tstrNetworkId::u8SsidLen, and WIFI_CRED_SAVE_ENCRYPTED.

Referenced by main().

tstr1xAuthTLSCredentials tlsCredentials

Referenced by post_main_page().