SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The connection policy of the device can be set by posting to /api/1/wlan/policy_set. Any combination of the parameters listed in Table 10-10 and present in the request turns on their associated option. Options with parameters that are not preset are turned off. No values are provided after the equal sign; the options are chained together with the ampersand operator. See Section 5.3.3 for details on each option.
To disable a specific policy, the corresponding token should not be passed. To disable all connection policies, the user should pass an empty or dummy post that does not contain any of the tokens.
Name (code) | Description | Example |
---|---|---|
Enable Auto Connect (__SL_P_P.E) | Auto connect policy | __SL_P_P.E= |
Enable Fast Connect (__SL_P_P.F) | Fast connect policy | __SL_P_P.F= |
Enable P2P Any Connect (__SL_P_P.G) | AnyP2P connect policy – relevant for Wi-Fi Direct only | __SL_P_P.G= |
Enable Auto Provisioning (__SL_P_P.Q) | Auto provisioning policy | __SL_P_P.Q= |
For example, the following request enables auto-connect and fast-connect policies, but keeps the P2P-any-connect and auto-provisioning policies disabled:
POST /api/1/wlan/policy_set HTTP/1.1
Host: mysimplelink.net
Content-Type: application/x-www-form-urlencoded
__SL_P_P.E=&__SL_P_P.F=