index.rst 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. 蓝牙 API
  2. *************
  3. :link_to_translation:`en:[English]`
  4. .. toctree::
  5. :maxdepth: 2
  6. bt_common
  7. bt_le
  8. :SOC_BT_CLASSIC_SUPPORTED: classic_bt
  9. controller_vhci
  10. esp-ble-mesh
  11. nimble/index
  12. ESP-IDF 目前支持两个主机堆栈。基于 Bluedroid 的堆栈(默认)支持传统蓝牙和 BLE,而基于 Apache NimBLE 的堆栈仅支持 BLE。用户可参考如下信息进行选择:
  13. * 对于同时涉及传统蓝牙和 BLE 的用例,应该选用 Bluedroid。
  14. * 对于仅涉及 BLE 的用例,建议选用 NimBLE。在代码占用和运行时,NimBLE 对内存的要求较低,因此适用于此类场景。
  15. .. only:: esp32
  16. 请点击下方链接,查看 ESP32 蓝牙架构:
  17. * `ESP32 蓝牙架构 (PDF) <https://espressif.com/sites/default/files/documentation/esp32_bluetooth_architecture_cn.pdf>`_
  18. 蓝牙 API 的示例代码存放于 ESP-IDF 示例项目的 :example:`bluetooth/bluedroid` 目录下。
  19. 下面的示例给出了详细介绍:
  20. * :example_file:`GATT 客户端示例 <bluetooth/bluedroid/ble/gatt_client/tutorial/Gatt_Client_Example_Walkthrough.md>`
  21. * :example_file:`GATT 服务端服务表格示例 <bluetooth/bluedroid/ble/gatt_server_service_table/tutorial/Gatt_Server_Service_Table_Example_Walkthrough.md>`
  22. * :example_file:`GATT 服务端示例 <bluetooth/bluedroid/ble/gatt_server/tutorial/Gatt_Server_Example_Walkthrough.md>`
  23. * :example_file:`GATT 客户端安全性示例 <bluetooth/bluedroid/ble/gatt_security_client/tutorial/Gatt_Security_Client_Example_Walkthrough.md>`
  24. * :example_file:`GATT 服务端安全性示例 <bluetooth/bluedroid/ble/gatt_security_server/tutorial/Gatt_Security_Server_Example_Walkthrough.md>`
  25. * :example_file:`GATT 客户端多连接示例 <bluetooth/bluedroid/ble/gattc_multi_connect/tutorial/Gatt_Client_Multi_Connection_Example_Walkthrough.md>`