SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
WLAN connection profiles can be added by posting to either /api/1/wlan/profile_add or /api/1/wlan/profile_p2p the parameters listed in Table 10-6 (all are case sensitive).
Name (code) | Description | Example |
---|---|---|
SSID (__SL_P_P.A) | The SSID of the desired AP. Must not exceed 32 characters. | __SL_P_P.A=TargetSSID |
Security (__SL_P_P.B) | Security type for the connection. 0-Open, 1-WEP, 2-WPA, 3-WPA2/WPA2+PMF, 5-WPA3, 6-WPS/Push-button, 7-WPS/Pin Keypad, 8- WPS/Pin Display | __SL_P_P.B=3 |
Security key (__SL_P_P.C) | Security key or PIN code. Must not exceed 64 characters. | __SL_P_P.C=MySecurePassword |
Priority (__SL_P_P.D) | Priority of the profile. Must be from 0 to 15. | __SL_P_P.D=1 |
For EAP connections, the URL for posting is /api/1/wlan/profile_eap, and the parameters are listed in Table 10-7 (all are case sensitive).
Name (code) | Description | Example |
---|---|---|
SSID (__SL_P_P.H) | The SSID of the desired AP. Must not exceed 32 characters. | __SL_P_P.H=TargetSSID |
Identity (__SL_P_P.I) | User identity. Must not exceed 64 characters. | __SL_P_P.I=MyIdentity |
Anonymous Identity (__SL_P_P.J) | Anonymous user identity. Must not exceed 64 characters. | __SL_P_P.J=MyAnonymousIdentity |
Password (__SL_P_P.K) | Connection password. Must not exceed 63 characters. | __SL_P_P.K=MySecurePassword |
Priority (__SL_P_P.L) | Priority of the profile. Must be from 0 to 15. | __SL_P_P.L=1 |
EAP Method (__SL_P_P.M) | Can be TLS / TTLS / PEAP0 / PEAP1 / FAST. | __SL_P_P.M=TLS |
Pahse2 Authentication (__SL_P_P.N) | Can be None / TLS / MSCHAPV2 / PSK | __SL_P_P.N=None |
EAP Provisioning Type (__SL_P_P.O) | Can be None / 0 / 1 / 2 | __SL_P_P.O=0 |
A post to /api/1/wlan/profile_del with the parameters listed in Table 10-8 erases a profile from the file system.
Name (code) | Description | Example |
---|---|---|
Delete profile (__SL_P_PRR) | Delete the profile with the specified index such that 0 < Index < 9. | __SL_P_PRR=2 |
A post to /api/1/wlan/profile_del_all deletes all profiles stored on the file system (this includes all profiles and is not limited to those created through the HTTP interface). Information on the existing profiles can be accessed using the __SL_G_PN1 to __SL_G_PP7 tokens (see Section 10.5).
For example, the following request adds a profile for connecting to a secure (3) network with SSID mySSID, password 0123456789, and priority 5:
POST /api/1/wlan/profile_add HTTP/1.1
Host: mysimplelink.net
Content-Type: application/x-www-form-urlencoded
__SL_P_P.B=3&__SL_P_P.A=mySSID&__SL_P_P.C=0123456789&__SL_P_P.D=5