SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
A WLAN scan for nearby access points may be triggered by posting to /api/1/wlan/en_ap_scan using the parameters listed in Table 10-9.
Name (code) | Description | Example |
---|---|---|
Number Of Scan Cycles (__SL_P_SC2) | Number of scan cycles to execute. Must be greater than zero and smaller than 2^32. | __SL_P_SC2=64 |
Time Between Scan Cycles (__SL_P_SC1) | Time (in seconds) to wait between each two cycles. | __SL_P_SC1=10 |
For example, the following request triggers 3 scan cycles with 10-second intervals between them:
POST /api/1/wlan/en_ap_scan HTTP/1.1
Host: mysimplelink.net
Content-Type: application/x-www-form-urlencoded
__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 Section 10.5).