This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3200获取密码错误

Other Parts Discussed in Thread: CC3200

调用sl_WlanGet获取AP参数时,SSID和SECURITY_TYPE可正确获取。但读取出的Password是错的。直接复制官方的代码也不对。

请问是什么问题?

ilength=32;
config_opt = WLAN_AP_OPT_SSID;
lRetVal=sl_WlanGet(SL_WLAN_CFG_AP_ID,&config_opt,&ilength,(unsigned char*)iSSID);
ASSERT_ON_ERROR(lRetVal);

ilength=1;
config_opt = WLAN_AP_OPT_SECURITY_TYPE;
lRetVal=sl_WlanGet(SL_WLAN_CFG_AP_ID,&config_opt,&ilength,(unsigned char*)&iType);
ASSERT_ON_ERROR(lRetVal);

ilength=64;
config_opt = WLAN_AP_OPT_PASSWORD;
lRetVal=sl_WlanGet(SL_WLAN_CFG_AP_ID,&config_opt,&ilength,(unsigned char*)iPassword);
ASSERT_ON_ERROR(lRetVal);