Espressif Systems ESP Faq page 158

Table of Contents

Advertisement

Chapter 4. Software framework
4.10.76 How do I set the country code for a Wi-Fi module ?
CHIP: ESP8266 | ESP32 | ESP32 | ESP32-C3
• Please call
esp_wifi_set_country
4.10.77 When using ESP32 as a SoftAP and have it connected to an Iphone, a warning
prompts as " low security WPA/WPA2(TKIP) is not secure. If this is your wireless
LAN, please configure the router to use WPA2(AES) or WPA3 security type",
how to solve it?
IDF: release/v4.0 and above
• You can refer to the following code snippet:
wifi_config_t wifi_config
.ap
=
{
.ssid
.ssid_len
.channel
.password
.max_connection
.authmode
.pairwise_cipher
},
};
• WIFI_AUTH_WPA2_PSK is AES, also called CCMP. WIFI_AUTH_WPA_PSK is TKIP.
WIFI_AUTH_WPA_WPA2_PSK is TKIP+CCMP.
4.10.78 Since ESP32's Wi-Fi module only supports 2.4 GHz of bandwidth, can Wi-Fi
networking succeed when using a multi-frequency router with both 2.4 GHz and
5 GHz of bandwidth?
• Please set your router to multi-frequency mode (can support 2.4 GHz and 5 GHz for one Wi-Fi account), and
the ESP32 device can connect to Wi-Fi normally.
4.10.79 How to obtain the RSSI of the station connected when ESP32 is used in AP mode?
• You can call API esp_wifi_ap_get_sta_list, please refer to the following code snippet:
{
wifi_sta_list_t wifi_sta_list;
esp_wifi_ap_get_sta_list(&wifi_sta_list);
for
(int
i
printf("mac address: %02x:%02x:%02x:%02x:%02x:%02x\t
sta_list.sta[i].mac[0], wifi_sta_list.sta[i].mac[1],wifi_sta_list.sta[i].
mac[2],
sta_list.sta[i].mac[5],wifi_sta_list.sta[i].rssi);
}
}
Espressif Systems
to set the country code.
=
{
=
EXAMPLE_ESP_WIFI_SSID,
=
strlen(EXAMPLE_ESP_WIFI_SSID),
=
EXAMPLE_ESP_WIFI_CHANNEL,
=
EXAMPLE_ESP_WIFI_PASS,
=
EXAMPLE_MAX_STA_CONN,
=
WIFI_AUTH_WPA2_PSK,
=
WIFI_CIPHER_TYPE_CCMP
=
0; i
<
wifi_sta_list.num; i++) {
wifi_sta_list.sta[i].mac[3],wifi_sta_list.sta[i].mac[4],wifi_
Submit Document Feedback
141
rssi:%d\n",wifi_
Release master

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP and is the answer not in the manual?

This manual is also suitable for:

Esp32Esp8266Esp32-s2Esp32-c3Esp32-s3

Table of Contents