SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
Manual connection triggers an immediate connection scan, and tries to establish a connection to a specific AP. The connection scan continues until a connection completes or a disconnect command is issued. Manual connection is treated as higher priority than any other connection type. The connection can be established according to SSID, or SSID and BSSID. The connection command can be applied only by the host driver and returns immediately before the connection is established. The host application is notified that the connection is successful through the connection asynchronous events as in all other connection methods.
Example:
SlWlanSecParams_t SecParams;
_i16 Status;
SecParams.Type = SL_WLAN_SEC_TYPE_WPA_WPA2;
SecParams.Key = "123456789";
SecParams.KeyLen = strlen(SecParams.Key);
Status = sl_WlanConnect("Test_Ent_AP",strlen("Test_Ent_AP"),0 ,&SecParams ,0,);
if( Status )
{
/* error */
}