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.

[参考译文] CCS/CC3200:具有密码身份验证的 CC3200-LAUNCHXL WLAN AP 模式

Guru**** 2557530 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/640924/ccs-cc3200-cc3200-launchxl-wlan-ap-mode-with-password-authentication

器件型号:CC3200

工具/软件:Code Composer Studio

您好!

  我使用的是 CCS 7版本,在 CCS 中,WLAN ap 示例代码被编辑为 WLAN ap 模式,并进行密码身份验证。但我只获得了打开的 wifi,没有身份验证/密码。我在代码下面添加了。

 是否有人用密码尝试过此代码。 我正在等待悔过。

静态 int 配置模式(int iMode)

char pcSsidName[33];
long lRetVal =-1;
char password[10]="Francis;
unsigned char val;
//passphras[7]='\0';
UART_PRINT ("输入 AP SSID 名称:");
GetSsidName (pcSsidName、33);

lRetVal = sl_WlanSetMode (Role_AP);
ASSERT_ON_ERROR (lRetVal);

lRetVal = sl_WlanSet (sl_WLAN_CFG_AP_ID、WLAN_AP_OPT_SSID、strlen (pcSsidName)、
(unsigned char*)pcSsidName);
ASSERT_ON_ERROR (lRetVal);
Val = sl_SEC_TYPE_WPA;
lRetVal = sl_WlanSet (sl_WLAN_CFG_AP_ID、WLAN_AP_OPT_SECURITY_TYPE、1、(无符号 char*) val);

lRetVal = sl_WlanSet (sl_WLAN_CFG_AP_ID、wlan_AP_opt_password、strlen (password)、
(unsigned char *) password);
UART_PRINT ("器件配置为 AP 模式\n\r\n);
//uart_print ("test JINU\n\r\n"r);
/*重新启动网络处理器*/
lRetVal = sl_Stop (sl_stop_timeout);

//复位状态位
CLR_STATUS_BIT_ALL (g_ulStatus);

返回 SL_Start (NULL、NULL、NULL);

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    您只需编辑 common.h 即可包含您尝试连接的 SSID、安全类型和密码。

    此致、

    查尔斯·奥