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.

Unable to run sl_start inside SimpleLinkHttpServerCallback function

Other Parts Discussed in Thread: CC3200

Hi,

I am working on the cc3200 httpserver example. I would like to connect to new access point once I received a certain post token from current ap device.

All the simple link functions like sl_WlanSetMode, sl_WlanDisconnect failed inside the SimpleLinkHttpServerCallback. 

Please help me to resolve this.

Here is the  code

void SimpleLinkHttpServerCallback(SlHttpServerEvent_t *pSlHttpServerEvent,
SlHttpServerResponse_t *pSlHttpServerResponse)
{

 case SL_NETAPP_HTTPPOSTTOKENVALUE_EVENT:

{

if(memcmp(ptr, connectnewdevice, strlen((const char *)connectnewdevice)) == 0)

{
              //Connect new ap device

                sl_Start(0, 0, 0);       //Not working

     sl_Stop(0xFF);       //Not working

                sl_WlanSetMode(ROLE_STA);  //not working

WlanConnect(new ssid);  //not working

}

}

}

Thanks in advance.

Sundar