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.

CC3220MODA:

Part Number: CC3220MODA

Hi,

I have a CC3220 in station mode which issues a sl_WlanConnect() call to connect to an AP.

Even though the AP does not exist the call returns 0 - success but no events are received - I waited 10 minutes. As I understand things, this is working as expected, asynchronous events will complete the connection.

So is the NWP continuously trying to connect to the AP ? and how long will it try for? forever? or do I have to manually make a connect call every few minutes?

If I wait, say, 5 minutes, and then move to the backup AP and issue another sl_WlanConnect() call to connect to the backup AP, is the first one cancelled? or do I have to explicitly cancel it?

Regards,

  • Hello,

    I believe you have to explicitly cancel it the first one. Call wlanDisconnect to do so.

    Jesu
  • Jesu,

    Thanks for that.

    And what about the initial connect request - will the NWP try to connect forever or will it give up after a time and thus we need to periodically keep calling sl_WlanConnect()?

    Regards,

  • Hello,

    I meant to say the initial connection request could be cancelled by calling sl_WlanDisconnect(). After that you're free to call sl_WlanConnect() again.

    Jesu
  • Jesu,

    Yes, I did understand your original answer. That's not what I am asking.

    As I mentioned in the original post, a station calls sl_WlanConnect() to connect to an AP. When it does this the AP is down so no events are generated to complete the handshake.

    My question is how long will the NMP try to connect to the AP, will it try as long as it has power ie forever or does it give up after x minutes?

    I have observed that when a station is powered up with no AP present it will sit there waiting for the connection events. When I power the AP up after a few minutes the events come in and the station connects to the AP. What I don't know is that if I powered the AP up after, say, a hour, will the station connect then or will it have timed out ? and thus has to call sl_WlanConnect() again.

    Regards,

  • Ahh, my mistake. The API does not timeout. It will try to connect forever - that's why the call is non-blocking.

    Jesu