FreeRTOS: Wi-Fi Management Library
Return to main page ↑
Configuration

Configuration settings of the Wifi library.
Configuration settings are C pre-processor constants. They can be set with a #define in the iot_config.h or by using a compiler option such as -D in gcc. If a configuration setting is not defined, the library will use a "sensible" default value (unless otherwise noted). Because they are compile-time constants, a library must be rebuilt if a configuration setting is changed.

configpagemarker

The Wi-Fi Management library does not have a configuration file provided, but the following identifiers must be #define'd in any application using the Wi-Fi Management library. Example values for these identifiers can be found in aws_wifi_config.h from the AWS FreeRTOS demo for the specific board being used.

Note that some of these identifiers are only utilized by certain ports of the Wi-Fi library and may not have an effect on all boards.

wificonfigMAX_CONNECTED_STATIONS

Maximum number of connected stations in Access Point mode.

Example value: 4

wificonfigMAX_NETWORK_PROFILES

Maximum number of network profiles stored in Non Volatile memory, set to zero if not supported.

Example value: 0

wificonfigMAX_SSID_LEN

Maximum length of SSID for access points (used to allocate memory for SSID strings), not including a NULL terminator.

Example value: 32

wificonfigMAX_BSSID_LEN

Maximum length of BSSID for access points (used to allocate memory for BSSID strings), not including a NULL terminator.

Example value: 6

wificonfigMAX_PASSPHRASE_LEN

Maximum length of passphrase for access points (used to allocate memory for passphrase strings), not including a NULL terminator.

Example value: 32

This length is designated by the Wi-Fi driver as both the WPA PSK and Passphrase length.

wificonfigMAX_SEMAPHORE_WAIT_TIME_MS

Maximum time to wait in milliseconds for obtaining the Wi-Fi semaphore before failing the operation.

Example value: 60000