5.4 On Demand Wi-Fi Connection
The host MCU application may establish a Wi-Fi connection on demand when all the required connection parameters (SSID, security credentials, and so on.) are known to the application. To start a Wi-Fi connection on demand, the application calls the following APIs based on the security type.
| Security Type | API |
|---|---|
| Open | m2m_wifi_connect_open |
| WEP | m2m_wifi_connect_wep |
| WPA/WPA2 | m2m_wifi_connect_psk |
| 802.1x with MSCHAPv2 | m2m_wifi_connect_1x_mschap2 |
| 802.1x with TLS | m2m_wifi_connect_1x_tls |
Alternatively, the application can call the API
m2m_wifi_connect to connect with an access point which supports
Open, WEP, WPA/WPA2 and 802.1x with MSCHAPv2. m2m_wifi_connect is
deprecated in v19.6.1 and is kept for legacy purpose.

