SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
This configuration uses macro SL_P2P_POLICY, the second parameters sent to function sl_WlanPolicySet.
For the intent value, three defines options can be used:
For negotiation initiator, three defines options can be used:
Use this configuration when working with two simplelink devices. The user may not have a GUI to start the negotiation, thus this option is offered to prevent the simultaneous negotiation of both devices after discovery.
API:
sl_WlanPolicySet(SL_POLICY_P2P,
SL_P2P_POLICY(Intent value, negotiation initiator)//macro,
&policyVal,
0
);
For example:
sl_WlanPolicySet(SL_POLICY_P2P,
SL_P2P_POLICY(SL_P2P_ROLE_NEGOTIATE,
SL_P2P_NEG_INITIATOR_RAND_BACKOFF
) //macro,
&policyVal,
0
);