SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
The Wi-Fi subsystem supports the Wi-Fi security types AES, TKIP, and WEP. The personal security type and personal security key are set in both the manual connection API or profiles connection API by the same parameter type – SlSecParams_t. This structure consists of the following fields:
Example code for adding a WPA2 secured AP profile:
secParams.Type = SL_SEC_TYPE_WPA;
secParams.Key = SEC_SSID_KEY;
secParams.KeyLen = strlen(SEC_SSID_KEY);
sl_WlanProfileAdd((char*)SEC_SSID_NAME, strlen(SEC_SSID_NAME), g_BSSID, &secParams, 0, 7, 0);