EasyManua.ls Logo

Espressif ESP32-S2 - ESP_ERR_INVALID_ARG: Invalid Argument

Espressif ESP32-S2
1695 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2. API Reference
Attention 6. Supported country codes are01(world safe mode)AT,AU,BE,BG,BR
, CA,CH,CN,CY,CZ,DE,DK,EE,ES,FI,FR,GB
,GR,HK,HR,HU, IE,IN,IS,IT,JP,KR,LI,LT,
LU,LV,MT,MX,NL,NO,NZ,PL,PT, RO,SE,SI,
SK,TW,US
Attention 7. When country code 01(world safe mode) is set, SoftAP mode wont contain country IE.
Attention 8. The default country is CNand ieee80211d_enabled is TRUE.
Return
ESP_OK: succeed
ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
ESP_ERR_INVALID_ARG: invalid argument
Parameters
country: the configured country ISO code
ieee80211d_enabled: 802.11d is enabled or not
esp_err_t esp_wifi_get_country_code(char *country)
get the current country code
Return
ESP_OK: succeed
ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
ESP_ERR_INVALID_ARG: invalid argument
Parameters
country: country code
esp_err_t esp_wifi_config_80211_tx_rate(wifi_interface_t ifx, wifi_phy_rate_t rate)
Config 80211 tx rate of specified interface.
Attention 1. This API should be called after esp_wifi_init() and before esp_wifi_start().
Return
ESP_OK: succeed
others: failed
Parameters
ifx: Interface to be configured.
rate: Phy rate to be configured.
Structures
struct wifi_init_config_t
WiFi stack configuration parameters passed to esp_wifi_init call.
Public Members
system_event_handler_t event_handler
WiFi event handler
wifi_osi_funcs_t *osi_funcs
WiFi OS functions
wpa_crypto_funcs_t wpa_crypto_funcs
WiFi station crypto functions when connect
int static_rx_buf_num
WiFi static RX buffer number
int dynamic_rx_buf_num
WiFi dynamic RX buffer number
int tx_buf_type
WiFi TX buffer type
int static_tx_buf_num
WiFi static TX buffer number
Espressif Systems 101
Submit Document Feedback
Release v4.4

Table of Contents