Hi,
I want to read all the wifi profiles which are added during provisioning in my application.
Where can I find the API's for the same?
Thank you
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.
Hi,
I want to read all the wifi profiles which are added during provisioning in my application.
Where can I find the API's for the same?
Thank you
Hi,
sl_WlanProfileGet() returns more information than security type only (SSID, MAC address, security type, priority). From security reasons is password not available. Determining which profile was added during provisioning can be done by saving values from sl_WlanProfileGet() before and after provisioning.
I am not aware about hander which will inform you about adding profile by runtime. In case of web configuration is used, nothing prevent you create own way (rest API) how to store profile values.
Jan
Hi Jan,
I tried as below,
_u32 retVal; _i8* pName; _i16 *pNameLen; _u8 *pMacAddr; SlWlanSecParams_t* pSecParams; SlWlanGetSecParamsExt_t* pSecExtParams; _u32 *pPriority; retVal = sl_WlanProfileGet(0, pName, pNameLen, pMacAddr, pSecParams, pSecExtParams, pPriority);
Nothing is returning from this.
Thank you
Hi,
This cannot work. Your working with pointers is not correct. Your code does not allocate required memory for returning values from API. In best case will not be retuned anything meaningful from API, at worse case will your code crash.
You need to use something like a:
_i8* pName[33];
Jan