In order to connect to AP, cc3200 calls sl_WlanConnect() ,
for example,
secParams.Key = (signed char*)SECURITY_KEY;
secParams.KeyLen = strlen(SECURITY_KEY);
secParams.Type = SECURITY_TYPE;
lRetVal = sl_WlanConnect((signed char*)SSID_NAME, strlen(SSID_NAME), 0, &secParams, 0);
but i use Smart Config feature to provision so i can not assign SSID_NAME, Key manually, how can i get the AP info especially Key(password)?
I can store the AP info when Smart Config is completed. The slSmartConfigStartAsyncResponse_t can be shown in the SL_WLAN_SMART_CONFIG_COMPLETE_EVENT of void SimpleLinkWlanEventHandler(SlWlanEvent_t *pSlWlanEvent).
but there is no Key (password) in slSmartConfigStartAsyncResponse_t.
How can i get the Key(password)?
typedef struct
{
_u32 status;
_u32 ssid_len;
_u8 ssid[32];
_u32 private_token_len;
_u8 private_token[32];
}slSmartConfigStartAsyncResponse_t;
My use scenario is that cc3200 is provisioned to any AP using Smart Config feature, after provision is completed cc3200 automatically re-connect to the AP every time the power of cc3200 is turned on again.
Thanks in advance.