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.

RTOS/CC3200: cc3200 httpserver

Part Number: CC3200

Tool/software: TI-RTOS

Hello Team ! 

I am using simplelink cc3200 http server application in station mode . On every reboot or power off i want the device to connect to the last connected AP which was configured previously using smart config. In smartconfig function i commented sl_profiledel function and changed the sl_connection policy as auto+fastconnect but still the device goes again in smartconfig mode only again i have to do smart config to connect to AP .kindly tell me how can i ratain the ssid and password parameters i.e profiles once connection happens on smart config on reboot also.

//lRetVal = sl_WlanProfileDel(WLAN_DEL_ALL_PROFILES);
// ASSERT_ON_ERROR(lRetVal);

//set AUTO policy
lRetVal = sl_WlanPolicySet(SL_POLICY_CONNECTION,
SL_CONNECTION_POLICY(1,1,0,0,0),
&policyVal,
1 /*PolicyValLen*/);

with regards 

pranav

  • Hello,

    If you are using the same httpserver example from the SDK as-is, the profiles and connection policy are also set prior to calling of SmartConfigConnect() as part of ConfigureSimpleLinkToDefaultState(). You need to also change it in order to keep the profiles and the connection policy.

    Regards,

    Shlomi