Chapter 4. Software framework
wifi_ap_record_t ap_info;
if (esp_wifi_sta_get_ap_info(&ap_info) == ESP_OK) {
int rssi = ap_info.rssi;
// handle rssi
}
The wifi_ap_record_t structure contains information about the connected AP, including SSID,
BSSID, channel, and encryption type. The RSSI eld represents the RSSI value of the AP. Call
esp_wifi_sta_get_ap_info() to get the information of this structure. For details of the API,
please refer to esp_err_t esp_wi_sta_get_ap_info(wi_ap_record_t *ap_info).
4.10.115 Does ESP32 support WPA3-Enterprise?
• ESP32 supports WPA/WPA2/WPA3/WPA2-Enterprise/WPA3-Enterprise/WAPI/WPS and DPP. For more
details, please refer to ESP32 Wi-Fi Feature List.
• esp-idf release/v5.0 has provided wi_enterprise example, which supports setting WPA3-Enterprise mode for
testing. You can congure it as following: idf.py menuconfig > Example Configuration >
Enterprise configuration to be used > WPA3_ENT.
4.10.116 Does ESP modules support WAPI (Wireless LAN Authentication and Privacy
Infrastructure)?
• Yes. Please refer to WIFI_AUTH_WAPI_PSK
4.10.117 How can I increase the time for scanning routers when using ESP32 as the Wi-Fi
Station to connect routers?
• In ESP32, by defualt, channels 1 ~ 11 are active scanning, while channels 12 ~ 13 are passive
scanning. Active and passive scanning require dierent amounts of time. For more details, please
refer to Wi-Fi scan conguration. The default duration for active scanning is 120 ms per channel,
while for passive scanning, it is 360 ms per channel. You can call the following function before
calling esp_wifi_start() to increase the time for scanning routers:
extern void scan_set_act_duration(uint32_t min, uint32_t max);
extern void scan_set_pas_duration(uint32_t time);
scan_set_act_duration(50, 500);
scan_set_pas_duration(500);
4.10.118 Does ESP32 support LDPC?
• Yes. No additional conguration or calling is required as it is already implemented in the driver.
Espressif Systems 150
Submit Document Feedback
Release master