大家好,cc3200 smart config 连接到wifi后, 第二次断电后怎么再次连入同一个AP了?
看了一下 doc, 好像是AES-128 加密了?
The Configuration process
is secured with AES-128 encryption, and the SSID and KEY length are supported up to 32 bytes
请教一下,该怎么实现。
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.
1、将sl_WlanProfileDel()注释掉,不要将保存的profile删除掉。
2、smartconfig会自动的得到SSID和密码,并保存这个profile。smart config配置完成SSID和密码当CC3200掉电后,都能以自动模式连接之前通过smart config保存的SSID和密码。即通过自动模式连接上AP
//set AUTO policy automatically reconnect to one of its stored profiles 自动模式下CC3200会从SPI_Flash中读取存储的profile配置AP信息并连接AP
3、lRetVal = sl_WlanPolicySet(SL_POLICY_CONNECTION,SL_CONNECTION_POLICY(1,0,0,0,1),&policyVal, 1 /*PolicyValLen*/);---设置为Auto+smartconfig的形式
请参考例程idle_profile里面的
//*****************************************************************************
//
//! \brief callback function for timer interrupt handler
//!
//! \param vParam is a general void pointer (not used here)
//!
//! \return None
//
//*****************************************************************************
void TimerCallback(void *vParam)
{
unsigned char ucQueueMsg = 1;
osi_MsgQWrite(&g_tWkupSignalQueue, &ucQueueMsg, OSI_NO_WAIT);
return;
}
你看看这个是不是你所需要的?