SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The SimpleLink Wi-Fi device provides users the ability to create a secure connection by using Wi-Fi Protected Setup (WPS). WPS a provisioning method which can be used to connect the device to the network (for more information on provisioning, see Section 17). WPS allows an easy and secure method to provision devices without knowing the network name and without typing long passwords. The standard defines two mandatory methods for WPS-enabled APs. The SimpleLink device support both methods:
When the WPS process successfully completes, a connection with the AP is established in the correct security setting according to the configuration of the AP (WPA/WPA2). The connection parameters are saved as a profile. After a reset, the device can reconnect to the AP using the saved profile, depending on the connection policy.
An example of initiating WPS with the PBC method:
_i16 Status;
SlWlanSecParams_t SecParams;
SecParams.Type = SL_WLAN_SEC_TYPE_WPS_PBC;
SecParams.KeyLen = 0;
SecParams.Key = "";
Status = sl_WlanConnect("WPS_AP",strlen("WPS_AP"),NULL,&SecParams ,NULL);
if( Status )
{
/* error */
}
An example of initiating WPS with the PIN Code:
_i16 Status;
SlWlanSecParams_t SecParams;
SecParams.Type = SL_WLAN_SEC_TYPE_WPS_PIN;
SecParams.KeyLen = strlen("11361435");
SecParams.Key = "11361435":
Status = sl_WlanConnect("WPS_AP",strlen("WPS_AP"),NULL, &SecParams ,NULL);
if( Status )
{
/* error */
}