SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
sl_WlanCfgSet (unsigned short ConfigId,
unsigned short ConfigOpt,
unsigned short ConfigLen,
unsigned char *pValues)
This function sets the user parameter to configure. The input parameters are:
This change takes affect after reset.
Table 9-1 describes how to configure each parameter.
Parameter | Description | ConfigId | ConfigOpt | ConfigLen |
---|---|---|---|---|
SSID | Service set identifier (SSID) - a 1- to 32-byte string, commonly called the "network name". Default: Composed from the device URN and last 6 digits of the MAC Address. For example – mysimplelink-112233. | SL_WLAN_CFG_AP_ID (0) | 0 | 1-32 |
Beacon interval | The time interval between beacon transmissions. Range: 15 <= interval <= 65,535 milliseconds. Default value: 100. | SL_WLAN_CFG_AP_ID (0) | 2 | 2 |
Channel | Operational channel for the AP. The range depends on the country code. Range: US: 1-11 JP: 1-14 EU: 1-13 Default value: 6 | SL_WLAN_CFG_AP_ID (0) | 3 | 1 |
SSID Hidden | Whether to NOT broadcast the SSID inside the Beacon frame. Default value: Disabled | SL_WLAN_CFG_AP_ID (0) | 4 | 1 |
DTIM | Indicates the interval of the Delivery Traffic Indication Message (DTIM). A DTIM field is a countdown field informing clients of the next window for listening to broadcast and multicast messages. DTIM field is in the Beacon frame. Range: DTIM > 0 Default value: 2 | SL_WLAN_CFG_AP_ID (0) | 5 | 1 |
Security Type | Security mode for the network. Range: Open (no security) / WEP / WPA Default: Open | SL_WLAN_CFG_AP_ID (0) | 6 | 1 |
Password | Password to use for the network in case Security Type is not open. Password should be human-readable string. For WEP, it should be 5 to 13 characters. For WPA it should be 8 to 63 characters. | SL_WLAN_CFG_AP_ID (0) | 7 | 5-63 |
WPS State | Wi-Fi Protected Setup (originally Wi-Fi Simple Config) is a network security standard that lets users easily secure a wireless home network. Default value: Disabled | SL_WLAN_CFG_AP_ID (0) | 8 | 1 |
Country code | Identifies the country code of the AP. Possible values are US (USA) or JP (Japan) or EU (Europe). Default value is “US”. | SL_WLAN_CFG_GENERAL_PARAM_ID (1) | 9 | 1 |
AP TX Power | AP transmission power. Range: 0 (maximal) – 15 (minimal). Default: 0 (maximal TX power). | SL_WLAN_CFG_GENERAL_PARAM_ID (1) | 11 | 1 |