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.

CC3220SF: How to read WiFi profiles added during Provisioning in Application?

Part Number: CC3220SF

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,

    Connection profiles you can read by API sl_WlanProfileGet()

    Jan

  • Hi Jan,
    similar to "sl_WlanGetNetworkList()", I want to read all the profiles list and their SSID's without knowing any parameters of profiles added.
    Thank you
  • Hi,

    Please read documentation for sl_WlanGetNetworkList() API. With sl_WlanGetNetworkList() you don't need to know any parameter of profile. As input parameters of API you have profile index.

    Jan
  • Hi Jan,
    my need is, I want to know all the profiles added during provision in run-time. So, I am doing something with this.
    I can read the available WiFi's with sl_WlanGetNetworkList();.
    So, Lets think I dont know the what profiles added. But I want read their info.
    sl_WlanProfileGet() is returning security type only.
    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

  • Hi,

    Small mistake, it should be:

    _i8  pName[33];

    Jan