Chapter 4. Software framework
4.10 Wi-Fi
4.10.1 Do ESP32 and ESP8266 support Chinese SSID for Wi-Fi?
Both ESP32 and ESP8266 support Chinese SSID, but you need to use corresponding libraries and im-
plement some settings. It should be noted you need to make special congurations when using Chinese
SSID as Chinese characters occupy dierent numbers of bytes.
For ESP32, you can use the Wi-Fi related API provided by ESP-IDF. When connecting AP, you can use
the fuction esp_wi_set_cong() to set Wi-Fi. The SSID parameter can be set to Chinese characters.
For example,
wifi_config_t wifi_config = {
.sta = {
.ssid = "你好,世界",
.password = "password123",
},
};
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config));
4.10.2 How much time does an ESP32 scan take?
The total time for scanning depends on:
• Active scan (by default) or passive scan.
• The time spent on each channel is 120 ms for active scanning and 360 ms for passive scanning.
• The country code and congured channel range from 1~13 channels (by default).
• Fast scan (by default) or full-channel scan.
• Station mode or Station-AP mode, and if any active connections are currently maintained.
By default, channels 1 to 11 use active scans, and channels 12 to 13 use passive scans.
• In the absence of connection in Station mode, the total time for a full-channel scan is: 11*120 +
2*360 = 2040 ms.
• With active connections in Station mode or Station-AP mode, the total time for a full-channel scan
is: 11*120 + 2*360 + 13*30 = 2430 ms.
4.10.3 [Scan] Do Espressif’s products support boundary scans?
No, they don’t.
4.10.4 What is the denition for Wi-Fi channel? Can I select any channel of my choice?
• A Wi-Fi channel is a frequency range used for wireless communication. Dierent countries and regions have
regulations on the available Wi-Fi channels. For example, in North America, the Wi-Fi channel ranges from
1 to 11, while in Europe, the Wi-Fi channel ranges from 1 to 13. For more details, please refer to ESP8266
Wi-Fi Channel Selection Guidelines.
Espressif Systems 125
Submit Document Feedback
Release master