SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The host can receive indication of specific states through events or errors. Asynchronous events can be sent to the host at any time with indication of a specific state and specific data for each event. To listen to these events and determine the needed information, a handler should be implemented in the user application, and registered under the user.h to catch the following possible events:
Indicates connection is successfully completed and includes the following information: MAC address
Indicates disconnection is successfully completed and includes the following information: MAC address
Indicates IP acquisition is successfully completed and includes the following information:
Errors are indicated by the return value of the API. Each error code is unique.Table 5-9 lists common errors that require user action (a complete list of possible errors is under the file error.h in the host driver).
Error | Value | Comments |
---|---|---|
SL_ERROR_ROLE_AP_ERR | –4108 | Initialization failure in AP mode |
SL_ERROR_WLAN_TX_POWER_OUT_OF_RANGE | –2167 | Configured TX power is out of range |
SL_ERROR_WLAN_INVALID_ROLE | –2050 | Action applied does not match the current mode. |
SL_ERROR_WLAN_CANNOT_CONFIG_SCAN_DURING_PROVISIONING | –2052 | Illegal action occurred during provisioning. |
SL_ERROR_WLAN_INVALID_COUNTRY_CODE | –2464 | Invalid country code |
SL_ERROR_WLAN_INVALID_AP_PASSWORD_LENGTH | –2168 | Configured AP password has invalid length. |
SL_ERROR_WLAN_AP_SCAN_INTERVAL_TOO_SHORT | –2176 | Scan in AP mode has a minimum interval of 10 seconds. |