wifi_device_config.h

Overview

Related Modules:

Wifiservice

Description:

Defines the Wi-Fi station configuration.

The Wi-Fi station configuration includes the security type and data length.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

WifiDeviceConfig

Represents the Wi-Fi station configuration used to connect to a specified Wi-Fi device.

WifiScanParams

Represents the Wi-Fi station configuration used to connect to a specified Wi-Fi device.

Macros

Macro Name and Value

Description

WIFI_MAX_CONFIG_SIZE   10

Indicates the maximum number of Wi-Fi station configurations that can be added using AddDeviceConfig.

WIFI_CONFIG_INVALID   (-1)

Indicates the value of networkId when the configuration file is unavailable.

WIFI_MAX_SSID_LEN   33

Indicates the maximum length of a Wi-Fi SSID.

WIFI_MAX_KEY_LEN   65

Indicates the maximum length of a Wi-Fi key.

WIFI_MAC_LEN   6

Indicates the maximum length of a Wi-Fi MAC address or a Wi-Fi BSSID.

WIFI_PSK_LEN   32

Indicates the maximum length of a Wi-Fi PSK.

Typedefs

Typedef Name

Description

WifiDeviceConfig

typedef struct WifiDeviceConfig 

Represents the Wi-Fi station configuration used to connect to a specified Wi-Fi device.

Enumerations

Enumeration Name

Description

WifiSecurityType {   WIFI_SEC_TYPE_INVALID = -1, WIFI_SEC_TYPE_OPEN, WIFI_SEC_TYPE_WEP, WIFI_SEC_TYPE_PSK,   WIFI_SEC_TYPE_SAE }

Enumerates Wi-Fi security types.

WifiPskType { WIFI_PSK_TYPE_ASCII = 0, WIFI_PSK_TYPE_HEX }

Enumerates psk encryption types.

WifiScanType { WIFI_FREQ_SCAN, WIFI_SSID_SCAN, WIFI_BSSID_SCAN, WIFI_BAND_SCAN }

Enumerates Wi-Fi scan types.