RESTful API Processing
145
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
HTTP Server
__SL_P_SC2=3&__SL_P_SC1=10
The scan results can be accessed with the __SL_G_NW0 and __SL_G_NW1 tokens (see
9.4.6 Provisioning Confirmation
Posts to
/api/1/wlan/en_ap_scan/confirm_req
are handled as described in
9.4.7 Connection Policy
The connection policy of the device can be set by posting to
/api/1/wlan/policy_set
. Any combination of the
parameters listed in
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
for details on each option.
Table 9-10. Connection Policies
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:
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=
9.4.8 Station Action
When the device is in AP mode, posts to
/api/1/wlan/en_ap_scan/station_action
can be performed to
disconnect stations from the device. The station to disconnect is given by the parameters listed in
Table 9-11. Station Action
Name (code)
Description
Example
Station number to disconnect
(__SL_P_CRR)
The number of the station to disconnect.
Must be from 1 to the maximum number
of station as set by the user.
__SL_P_CRR=1
For example, the following request disconnects station 1:
POST /api/1/wlan/en_ap_scan/station_action HTTP/1.1
Host: mysimplelink.net
Content-Type: application/x-www-form-urlencoded
__SL_P_CRR=1
9.4.9 AP Black List
When the device is in AP mode, posts to
/api/1/wlan/en_ap_scan/ap_aclist
can be made to control the
black list, which indicates stations are not allowed to connect to the device.
lists these
parameters.