mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'docs/add_application_example_esp_now' into 'master'
docs: add application example for esp-now Closes DOC-2452 See merge request espressif/esp-idf!16643
This commit is contained in:
commit
097785d6c8
@ -81,6 +81,13 @@ Receiving ESP-NOW Data
|
|||||||
Call ``esp_now_register_recv_cb`` to register receiving callback function. Call the receiving callback function when receiving ESP-NOW. The receiving callback function also runs from the Wi-Fi task. So, do not do lengthy operations in the callback function.
|
Call ``esp_now_register_recv_cb`` to register receiving callback function. Call the receiving callback function when receiving ESP-NOW. The receiving callback function also runs from the Wi-Fi task. So, do not do lengthy operations in the callback function.
|
||||||
Instead, post the necessary data to a queue and handle it from a lower priority task.
|
Instead, post the necessary data to a queue and handle it from a lower priority task.
|
||||||
|
|
||||||
|
Application Examples
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
* Example of sending and receiving ESP-NOW data between two devices: :example:`wifi/espnow`.
|
||||||
|
|
||||||
|
* For more application examples of how to use ESP-NOW, please visit `ESP-NOW <https://github.com/espressif/esp-now>`_ repository.
|
||||||
|
|
||||||
API Reference
|
API Reference
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
@ -81,6 +81,13 @@ ESP-NOW 采用 CCMP 方法保护供应商特定动作帧的安全,具体可参
|
|||||||
调用 ``esp_now_register_recv_cb`` 注册接收回调函数。当接收 ESP-NOW 数据时,需要调用接收回调函数。接收回调函数也在 Wi-Fi 任务任务中运行。因此,不要在回调函数中执行冗长的操作。
|
调用 ``esp_now_register_recv_cb`` 注册接收回调函数。当接收 ESP-NOW 数据时,需要调用接收回调函数。接收回调函数也在 Wi-Fi 任务任务中运行。因此,不要在回调函数中执行冗长的操作。
|
||||||
相反,将必要的数据发布到队列,并交给优先级较低的任务处理。
|
相反,将必要的数据发布到队列,并交给优先级较低的任务处理。
|
||||||
|
|
||||||
|
应用示例
|
||||||
|
----------
|
||||||
|
|
||||||
|
* 如何在设备间传输 ESP-NOW 数据::example:`wifi/espnow`。
|
||||||
|
|
||||||
|
* 了解更多 ESP-NOW 的应用示例,请参考 `README.md 文件 <https://github.com/espressif/esp-now>`_。
|
||||||
|
|
||||||
API 参考
|
API 参考
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user