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.

CC3235MODAS: Simplelink event handler not working

Part Number: CC3235MODAS

Hello,

I have used sl_WlanSetMode() to change the wifi mode of the device as below, 

sl_WlanSetMode(ROLE_AP);
sl_Stop(0);
sl_Start(0, 0, 0);

After changing the mode I am able to connect to the AP and also all other simplelink functionality of AP mode is working fine, but after changing the mode device is not getting any wlan event in SimpleLinkWlanEventHandler() event handler. Is there any thing else that to restart the simplelink event handler? I want to detect the station connect and disconnect event for my application. 

  • Hi,

    Without proper connection into WLAN you will not get SimpleLinkWlanEventHandler() at STA mode. For connection into WLAN you need to have:

    • set connection profiles or use manual connection into WLAN by sl_WlanConnect()
    • in case of connection profiles are used, you should have set connection policy as well

    btw ... asynchronous handers are served inside sl_Task() context. That means this task need to be running.

    Jan

  • Hi,
    I agree with Jan that the first thing to check would be that sl_Task() is running correctly. That shouldn't be directly impacted by changing the device role and then resetting the network processor, but it's good to make sure.

    It sounds like you do see events show up when the device is in STA role and connects to another AP, correct? It's just in AP role that you don't see events?

    Do you have the cases for the AP-related events populated in the event handlers?

    I expect this to be working well on the device, so it might also be good to make sure you have flashed a recent servicepack on the device. Please confirm which servicepack version you are working with.

    Best Regards,

    Ben M