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.

Provisioning AP: even after adding a profile on provisioning_AP page, it doesn't reflect in profile list on profile page

Other Parts Discussed in Thread: CC3100

Hi

I'm trying to provision AP. But seems like with the example code provided,it doesn't update the internal list of profiles and hence cannot be used on next time device boot up. 

what I'm trying to do is configure wifi credentials and set the device in auto connect mode. So when next time device gets powered, it directly connects to wifi router rather than asking for credentials again. 

Provisioning AP code doesnot update the profile list on profile page on simplelink internal webserver.

  • Hi,

       At provisioning_ap example program there is a code line that deletes all stored profiles at Serial Flash at initialization. Comment out this code line.

    - kel

  • Hi Shatuddha,

    You are correct. in CC3100 'provisioning_ap' example we are not adding the profile but only connects to the network.

    you can add the below code in 'establishConnectionWithAP()' function of the example to add the profile

    retVal = sl_WlanProfileAdd(g_Wlan_SSID, pal_Strlen(g_Wlan_SSID), 0, &g_secParams, 0, 7, 0);
    ASSERT_ON_ERROR(retVal);

    before 'sl_WlanConnect()' function call.

    Also as Kel mentioned you need to remove the 'sl_WlanProfileDel()' function call from the 'configureSimpleLinkToDefaultState()' function to prevent example from deleting the stored profiles.

    Regards,

    Ankur

  • Hi Shatuddha,

     

    I am closing this thread, If the issue still exists please open anew thread and add a link to this one for reference.

     

    Regards,

    Ankur