WiFi Provisioning configuration.
Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries.
#include "driver/include/m2m_wifi.h"
#include "driver/include/m2m_types.h"
Data Structures | |
struct | tstr1xAuthTLSCredentials |
struct | wifiProvisionParams |
Macros | |
#define | CERT_BUFFER_SIZE 1200 |
#define | HTTP_PORT 80 |
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_WEP /* < Security type */ |
#define | PROV_WLAN_CHANNEL (1) /* < Channel number */ |
#define | PROV_WLAN_SOFTAP_SSID "WINC3400_PROV_HTTP" /* < SSID */ |
Wi-Fi Settings. More... | |
#define | PROV_WLAN_SSID_MODE SSID_MODE_VISIBLE |
#define | PROV_WLAN_WEP_KEY "1234567890" /* < Security Key in WEP Mode */ |
#define | PROV_WLAN_WEP_KEY_INDEX (1) |
#define | PROV_WLAN_WEP_SIZE WEP_40_KEY_STRING_SIZE |
#define | RX_BUF_SZ SOCKET_BUFFER_MAX_LENGTH |
#define | USE_WEP 1 |
Enumerations | |
enum | enterprise_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 80 |
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_WEP /* < Security type */ |
Referenced by wifi_ap_provision().
#define PROV_WLAN_CHANNEL (1) /* < Channel number */ |
Referenced by wifi_ap_provision().
#define PROV_WLAN_SOFTAP_SSID "WINC3400_PROV_HTTP" /* < SSID */ |
Wi-Fi Settings.
Referenced by wifi_ap_provision().
#define PROV_WLAN_SSID_MODE SSID_MODE_VISIBLE |
#define PROV_WLAN_WEP_KEY "1234567890" /* < Security Key in WEP Mode */ |
Referenced by wifi_ap_provision().
#define PROV_WLAN_WEP_KEY_INDEX (1) |
Referenced by wifi_ap_provision().
#define PROV_WLAN_WEP_SIZE WEP_40_KEY_STRING_SIZE |
#define RX_BUF_SZ SOCKET_BUFFER_MAX_LENGTH |
#define USE_WEP 1 |
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 perform m2m_wifi_init() before calling this api.
This will connect to the AP with the credentials received in wifiProvisionParams The user is expected to perform m2m_wifi_init() before calling this api.
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.
void wifi_ap_provision | ( | wifiProvisionParams * | provParams | ) |
Wi-Fi Provisioning main application function.
This is a blocking function that wait for the user to connect to the PROV_WLAN_SOFTAP_SSID and provide the credentials in web page http://192.168.1.1/provisioning.html. The user is expected to close all the open socket and perform socketDeinit() and m2m_wifi_deinit before this function is called
This is a bocking function that wait for the user to connect to the PROV_WLAN_SOFTAP_SSID and provide the credentials in web page https://192.168.1.1/provisioning.html. The user is expected to close all the open socket and perofrm socketDeinit() and m2m_wifi_deinit before this function is called
tstr1xAuthTLSCredentials tlsCredentials |