你好 我通过 sl_WlanProfileAdd 保存的ssid和 password
之后reset重启 通过sl_WlanProfileGet 函数去获取 ssid 第一个参数 写的是0
但是有的时候 就获取不到ssid,
期间有做过del 然后重新执行sl_WlanProfileAdd 操作 存一个新的ssid
所以想知道 del所有之后 重新 sl_WlanProfileAdd 那个对应文件的index还是0吗?
换句话说 sl_WlanProfileAdd 执行后 对应的profile的index怎么确定
Viki Shi:
WLAN profiles are designed to allow connections to pre-defined stored access-points. A profile provides the information required to connect to a given AP. This information includes the SSID, security-type and security-keys of an AP. Each profile refers to a certain AP. The profiles are stored on the non-volatile memory, and therefore are preserved during device reset.
The following APIs are available for handling profiles:
"sl_WlanProfileAdd" – Used for adding a new profile. SSID and security info shall be provided, where returned value refers to the stored index (out of the 7 available)
"sl_WlanProfileDel" – Used for deleting a certain stored profile, or for deleting all at once. Index shall be the input parameter
"sl_WlanProfileGet" – Used for retrieving information of certain stored profile. Index shall be the input parameter
TI中文支持网


