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.

CC3220SF: Manual WiFi connection - proper way

Part Number: CC3220SF


Dear TI and others!

In my application I want to have full control over connection to WiFi. So I would prefer to disable Auto Connect feature of CC3220SF (using SL_WLAN_CONNECTION_POLICY(0,1,0,0)).
I expect to have stored one connection profile using function sl_WlanProfileAdd(..).

Is the only possible option to connect to WiFi AP with stored profile credentials that I will switch connection policy to Auto Connect (SL_WLAN_CONNECTION_POLICY(1,1,0,0)) ?
Will connection to WiFi AP starts immediately if the Auto Connect option will be set?
Is it safe also from device perspective? I am not sure what kind of internal memory I am modifying here what is its durabilty.

Or would be better way to use function sl_WlanConnect and not store any profile for Auto Connect?

What would you recommend?

Thank you for your answer!

Regards

Jiří

  • Hi Jiří,

    You should use sl_WlanConnect() API definitely.

    API for changing connection policy requires sFlash write cycle. Guaranteed number of write cycles per one sFlash sector is about 100k (depending of used SPI flash type).

    One of another option may to be disable persistent configuration and change connection policy, but usage of sl_WlanConnect() API is much straight forward way.

    Jan

  • Hello Jan,

    thank you for your recommendation, I will follow it!

    Regards
    Jiří