SWRA513C January 2020 – September 2020 CC3120 , CC3120MOD , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
Table 9-1 shows the provisioning HTTP/HTTPS server APIs.
Function | Method | URI | Parameters and Return Values |
---|---|---|---|
Add Profile | POST | /api/1/wlan/profile_add |
__SL_P_P.A = SSID __SL_P_P.B = Security type __SL_P_P.C = Security key __SL_P_P.D = Priority |
Set Device Name | POST | /api/1/netapp/set_urn | __SL_P_S.B = Device name |
Get Device Name | GET | /param_device_name.txt | Returns device name string |
Confirmation Request | POST | /api/1/wlan/confirm_req | None |
Get Confirmation Result | GET | /param_cfg_result.txt |
Return values: 0 - Confirmation not started 1 - SSID not found 2 - Connection failed 3 - IP not acquired 4 - Feedback failed 5 - Confirmation success |
Get Device Version | GET | /param_product_version.txt | Returns R2.0 (for CC3x20 and CC3x3x devices) |
Start AP Scan | POST | /api/1/wlan/en_ap_scan |
__SL_P_SC1 = time between scan cycles __SL_P_SC2 = number of scan cycles |
Get Scan Results | GET | /netlist.txt | Returns a List of SSIDs and their security types (0-Open, 1-WEP, 3-WPA/WPA2, 5-WPA3) |