SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
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. Table 10-12 lists these parameters.
Name (code) | Description | Example |
---|---|---|
Blacklist Filter Enable (__SL_P_C.M) | Enables the station MAC address blacklist filter: 0-Filter disabled 1-Filter enabled | __SL_P_C.M=1 |
Add station to the blacklist filter (__SL_P_CRL) | Adds the station of the specified index to the blacklist filter (if filter is enabled it will not be allowed to connect again). | __SL_P_CRL=1 |
Remove station from the blacklist filter (__SL_P_CRS) | Removes the station of the specified index from the blacklist filter (station can connect). | (__SL_P_CRS=1) |
Remove station from the blacklist filter (__SL_P_C.B) | Sets the maximum number of simultaneously-connected stations. Must be less than 5. | (__SL_P_C.B=3) |
For example, the following request enables the filter and adds a station at index 1, preventing it from connecting to the device:
POST /api/1/wlan/en_ap_scan/ap_aclist HTTP/1.1
Host: mysimplelink.net
Content-Type: application/x-www-form-urlencoded
__SL_P_C.M=1&__SL_P_CRL=1
AP black list information can be accessed using the __SL_G_SR1 to __SL_G_CL8 tokens (see Section 10.5).