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.

CCS/CC3200MOD: CCS

Part Number: CC3200MOD
Other Parts Discussed in Thread: CC3200

Tool/software: Code Composer Studio

Hi,

I am using Http Client demo project to implement Wifi functionality in my project.

1. I need to disconnect the access point manually which I am unable to implement yet. Can you please tell me how to handle those Wlan events in order to implement my functionality? 

2. Also, the access point gets disconnected sometimes and when I send command to reconnect it with the ConnectToAP() function ,it doesn't work. How to reconnect AP without restarting the cc3200 module?

Thanks and regards,

Nikhil 

  • Hi Nikhil,

    Sorry--I'm not fully grasping what you are trying to do with your first question. Can you please help me understand? Which functionality is it you are trying to implement?  Are you referring to sl_WlanDisconnect?

    For your second question, are you seeing an error code that is returned? Have you tried using an auto connection policy? This would allow you to automatically reconnect to one of the stored Wi-Fi profiles.

  • Hi Austin,

    In my first question I want to know, How to disconnect an access point in http client demo function? For example, the user will send a command to disconnect AP and it should be disconnected just like we have a function to connect AP i.e. ConnecttoAP() .

  • For second question, the error which occurs is "[WLAN ERROR] Device disconnected from the AP AP:(ssid name)" . I am not using autoconnection policy because I am not storing profiles. I am connecting it manually by simply sending SSID and Password to the ConnecttoAP() function. IF the above error occurs so how to reconnect to the same AP?
  • Hi Nikhil,

    1) The CC3200 client should call sl_WlanDisconnect to disconnect from an AP
    2) The CC3200 client should call sl_WlanConnect to connect to an AP