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/CC3220SF-LAUNCHXL: CC3220SF-LAUNCHXL

Part Number: CC3220SF-LAUNCHXL

Tool/software: Code Composer Studio

Hi,

Now i'm working with mqtt client demo (using cc3220 with latest sdk and coding in ccs7),

i want to input my ssid parameters in the first start only(i done it but on restart i have to enter it again) ,i don't want to input parameters again on restart which means it run with the previous inputted parameters, is it possible ?how explain? (i had an idea to use it with switch option ,first option for input and second option for run with previous saved parameter, how can i implement this ?)

Thank you

  • Hi Aju,

    The mqtt client demo for CC3220 is designed to take predefined network credentials in network_if.h so that it will always connect to the same network (intended to be used this way for development). You should not need to enter the parameters every time if you are connecting to the same network.

    It sounds like what you are asking for is provisioning though - We have a specific, standalone example for this in the SDK and there is a demonstration of this integrated into a full demo in the Out-of-Box application. You can implement provisioning many ways depending to your needs (AP, SmartConfig, etc.).

    When the application starts up, you can wait on a button press (as you describe) to decide whether to enter a provisioning state or proceed with the example. You could also enable Auto/Fast connect on the device to allow it to automatically try to connect to a stored profile when in STA mode. With this option enabled, you can wait for a defined amount of time to see if the device connects to the network. Then if you hit the timeout you can decide to enter a provisioning state.

    For more information, checkout our application note on provisioning here.

    Best Regards,

    Ben M

  • Hi Benjamin Moore,
    Thanks for your reply ,i decide to implement it with flash that's when i enter password each time it will store in flash so we can take it on restart.
  • Hi Aju,

    That is exactly how a profile should be stored. However, you should store the profile using the sl_WlanProfileAdd() command so that it is secured on the flash and the password can't be exposed.

    Best Regards,
    Ben M
  • Hi Benjamin Moore,
    Thanks for your replay .now i'm working on it .