mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 05:04:33 +02:00
update wifi api docs
This commit is contained in:
@@ -190,7 +190,7 @@ esp_err_t esp_now_unregister_send_cb(void);
|
||||
* - ESP_ERR_ESPNOW_NOT_INIT : ESPNOW is not initialized
|
||||
* - ESP_ERR_ESPNOW_ARG : invalid argument
|
||||
* - ESP_ERR_ESPNOW_INTERNAL : internal error
|
||||
* - ESP_ERR_ESPNOW_NO_MEM : out of memory
|
||||
* - ESP_ERR_ESPNOW_NO_MEM : out of memory, when this happens, you can delay a while before sending the next data
|
||||
* - ESP_ERR_ESPNOW_NOT_FOUND : peer is not found
|
||||
* - ESP_ERR_ESPNOW_IF : current WiFi interface doesn't match that of peer
|
||||
*/
|
||||
|
@@ -488,7 +488,7 @@ esp_err_t esp_wifi_get_ps(wifi_ps_type_t *type);
|
||||
* @brief Set protocol type of specified interface
|
||||
* The default protocol is (WIFI_PROTOCOL_11B|WIFI_PROTOCOL_11G|WIFI_PROTOCOL_11N)
|
||||
*
|
||||
* @attention Currently we only support 802.11b or 802.11bg or 802.11bgn mode
|
||||
* @attention Support 802.11b or 802.11bg or 802.11bgn or LR mode
|
||||
*
|
||||
* @param ifx interfaces
|
||||
* @param protocol_bitmap WiFi protocol bitmap
|
||||
|
@@ -3,10 +3,11 @@ Wi-Fi Driver
|
||||
|
||||
{IDF_TARGET_NAME} Wi-Fi Feature List
|
||||
------------------------------------
|
||||
- Support Station-only mode, AP-only mode, Station/AP-coexistence mode
|
||||
- Support IEEE-802.11B, IEEE-802.11G, IEEE802.11N and APIs to configure the protocol mode
|
||||
- Support 4 virtual WiFi interfaces, which are 4 STA, AP, Sniffer and reserved.
|
||||
- Support station-only mode, AP-only mode, station/AP-coexistence mode
|
||||
- Support IEEE 802.11b, IEEE 802.11g, IEEE 802.11n, and APIs to configure the protocol mode
|
||||
- Support WPA/WPA2/WPA2-Enterprise and WPS
|
||||
- Support AMPDU, HT40, QoS and other key features
|
||||
- Support AMPDU, HT40, QoS, and other key features
|
||||
- Support Modem-sleep
|
||||
- Support an Espressif-specific protocol which, in turn, supports up to **1 km** of data traffic
|
||||
- Up to 20 MBit/sec TCP throughput and 30 MBit/sec UDP throughput over the air
|
||||
@@ -1193,6 +1194,7 @@ API esp_wifi_set_config() can be used to configure the AP. The table below descr
|
||||
Wi-Fi Protocol Mode
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
<<<<<<< HEAD
|
||||
Currently, the IDF supports the following protocol modes:
|
||||
|
||||
+--------------------+------------------------------------------------------------+
|
||||
@@ -1213,11 +1215,11 @@ Currently, the IDF supports the following protocol modes:
|
||||
+--------------------+------------------------------------------------------------+
|
||||
| 802.11 BGNLR | Call esp_wifi_set_protocol(ifx, WIFI_PROTOCOL_11B| |
|
||||
| | WIFI_PROTOCOL_11G|WIFI_PROTOCOL_11N|WIFI_PROTOCOL_LR) |
|
||||
| | to set the station/AP to BGN and the |
|
||||
| | Espressif-specific mode. |
|
||||
| | to set the station/AP to BGN and the LR mode. |
|
||||
| | |
|
||||
+--------------------+------------------------------------------------------------+
|
||||
| 802.11 LR | Call esp_wifi_set_protocol(ifx, WIFI_PROTOCOL_LR) to set |
|
||||
| | the station/AP only to the Espressif-specific mode. |
|
||||
| | the station/AP only to the LR mode. |
|
||||
| | |
|
||||
| | **This mode is an Espressif-patented mode which can achieve|
|
||||
| | a one-kilometer line of sight range. Please, make sure both|
|
||||
@@ -1281,7 +1283,7 @@ The reception sensitivity of LR has about 4 dB gain than the traditional 802.11
|
||||
LR Throughput
|
||||
*************************
|
||||
|
||||
The LR rate has very limited throughput because the raw PHY data rate LR is 1/2 Mbits and 1/4 Mbits.
|
||||
The LR rate has very limited throughput, because the raw PHY data rates are 1/2 Mbps and 1/4 Mbps.
|
||||
|
||||
When to Use LR
|
||||
*************************
|
||||
|
@@ -64,8 +64,13 @@ When ``esp_now_deinit()`` is called, all of the information of paired devices wi
|
||||
Add Paired Device
|
||||
-----------------
|
||||
|
||||
Call ``esp_now_add_peer()`` to add the device to the paired device list before you send data to this device. The maximum number of paired devices is twenty. If security is enabled, the LMK must be set. You can send ESP-NOW data via both the Station and the SoftAP interface.
|
||||
Make sure that the interface is enabled before sending ESP-NOW data. A device with a broadcast MAC address must be added before sending broadcast data. The range of the channel of paired devices is from 0 to 14. If the channel is set to 0, data will be sent on the current channel. Otherwise, the channel must be set as the channel that the local device is on.
|
||||
Call ``esp_now_add_peer()`` to add the device to the paired device list before you send data to this device. If security is enabled, the LMK must be set. You can send ESP-NOW data via both the Station and the SoftAP interface. Make sure that the interface is enabled before sending ESP-NOW data.
|
||||
|
||||
.. only:: esp32 or esp32s2
|
||||
|
||||
The maximum number of paired devices is 20, and the paired encryption devices are no more than 16, the default is 6.
|
||||
|
||||
A device with a broadcast MAC address must be added before sending broadcast data. The range of the channel of paired devices is from 0 to 14. If the channel is set to 0, data will be sent on the current channel. Otherwise, the channel must be set as the channel that the local device is on.
|
||||
|
||||
Send ESP-NOW Data
|
||||
-----------------
|
||||
|
@@ -64,8 +64,13 @@ ESP-NOW 采用 CCMP 方法保护供应商特定动作帧的安全,具体可参
|
||||
添加配对设备
|
||||
-----------------
|
||||
|
||||
在将数据发送到其他设备之前,请先调用 ``esp_now_add_peer()`` 将其添加到配对设备列表中。配对设备的最大数量是 20。如果启用了加密,则必须设置 LMK。ESP-NOW 数据可以从 Station 或 Softap 接口发送。
|
||||
确保在发送 ESP-NOW 数据之前已启用该接口。在发送广播数据之前必须添加具有广播 MAC 地址的设备。配对设备的信道范围是从 0 ~14。如果信道设置为 0,数据将在当前信道上发送。否则,必须使用本地设备所在的通道。
|
||||
在将数据发送到其他设备之前,请先调用 ``esp_now_add_peer()`` 将其添加到配对设备列表中。如果启用了加密,则必须设置 LMK。ESP-NOW 数据可以从 Station 或 Softap 接口发送。确保在发送 ESP-NOW 数据之前已启用该接口。
|
||||
|
||||
.. only:: esp32 or esp32s2
|
||||
|
||||
配对设备的最大数量是 20,其中加密设备的数量不超过 16,默认值是 6。
|
||||
|
||||
在发送广播数据之前必须添加具有广播 MAC 地址的设备。配对设备的信道范围是从 0 ~14。如果信道设置为 0,数据将在当前信道上发送。否则,必须使用本地设备所在的通道。
|
||||
|
||||
发送 ESP-NOW 数据
|
||||
-----------------
|
||||
|
Reference in New Issue
Block a user