SWRA513C January 2020 – September 2020 CC3120 , CC3120MOD , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The host controls the provisioning process using one command: sl_WlanProvisioning
_i16 sl_WlanProvisioning(_u8 ProvisioningCmd, _u8 RequestedRoleAfterSuccess, _u16 InactivityTimeoutSec, char *pSmartConfigKey, _u32 Flags);
Table 7-1 lists the values the ProvisioningCmd command can have.
Command | Value | Action |
---|---|---|
SL_WLAN_PROVISIONING_CMD_START_MODE_AP | 0 | Start provisioning in AP configuration mode. |
SL_WLAN_PROVISIONING_CMD_START_MODE_SC | 1 | Start provisioning in SmartConfig configuration mode. |
SL_WLAN_PROVISIONING_CMD_START_MODE_APSC | 2 | Start provisioning in AP plus SmartConfig configuration mode. |
SL_WLAN_PROVISIONING_CMD_START_MODE_APSC_EXTERNAL_ CONFIGURATION | 3 | Start provisioning in AP plus SmartConfig configuration mode, and enable the use of external configuration methods. |
SL_WLAN_PROVISIONING_CMD_STOP | 4 | Stop currently running provisioning process. |
SL_WLAN_PROVISIONING_CMD_ABORT_EXTERNAL_CONFIRMATION | 5 | Stop currently running confirmation stage, if external confirmation is used. Device returns to configuration stage. |
Command | Value | Action |
---|---|---|
BIT_0 | ENABLE_EXTERNAL_CONFIRMATION | Defines whether to use external confirmation or not. Relevant only if the value of the ProvisioningCmd command is 0, 1, 2, or 3. |
Command | Value | Action |
---|---|---|
STATUS_OK | 0 | Command was successfully executed. |
SL_ERROR_WLAN_PROVISIONING_ABORT_PROVISIONING_ALREADY_STARTED | –2169 | Start provisioning command failed because provisioning process is already running. |
SL_ERROR_WLAN_PROVISIONING_ABORT_HTTP_SERVER_DISABLED | –2170 | Start provisioning command failed because HTTP server is disabled. |
SL_ERROR_WLAN_PROVISIONING_ABORT_PROFILE_LIST_FULL | –2171 | Start provisioning command failed because profile list is full. |
SL_ERROR_WLAN_PROVISIONING_ABORT_INVALID_PARAM | –2172 | Start provisioning command failed because one of the parameters is invalid. |
SL_ERROR_WLAN_PROVISIONING_ABORT_GENERAL_ABORT | –2173 | Start provisioning command failed because of an unknown reason. |
SL_ERROR_WLAN_PROVISIONING_CMD_NOT_EXPECTED | –2177 | Provisioning command failed because it was not expected. |