SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
This section discusses the profile connection policy. This policy lets the system connect to a peer without a reset or disconnect operation by the remote peer.
The mechanism describes how the device uses these profiles in relation to P2P automatic connection. A manual connection is also described in Section 10.2.6.
There is a general mechanism for peer profile and peer profile configuration, which is not described in this document. An example of how to add the profile is provided in Section 10.2.8.
This configuration uses the macro SL_CONNECTION_POLICY, the second parameter sent to function sl_WlanPolicySet.
There are four connection policy options:
Each option should be sent or set in this macro as true or false. More than one option can be used; for example, the user can set both the auto-start and the fast connect options to true.
API:
sl_WlanPolicySet(SL_POLICY_P2P,
SL_CONNECTION_POLICY(auto start, fast connect,openAp,AnyP2p) //macro,
&policyVal,
0
);
For example:
sl_WlanPolicySet(SL_POLICY_P2P,
SL_CONNECTION_POLICY(true, true, false, false) //macro,
&policyVal,
0
);