Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 2.09 KB

index.rst

File metadata and controls

36 lines (25 loc) · 2.09 KB

Bluetooth® API

:link_to_translation:`zh_CN:[中文]`

.. toctree::
    :maxdepth: 2

    bt_common
    bt_le
    :SOC_BT_CLASSIC_SUPPORTED: classic_bt
    controller_vhci
    :SOC_BLE_MESH_SUPPORTED: esp-ble-mesh
    nimble/index

ESP-IDF currently supports two host stacks. The Bluedroid based stack (default) supports classic Bluetooth as well as Bluetooth Low Energy (Bluetooth LE). On the other hand, Apache NimBLE based stack is Bluetooth Low Energy only. For users to make a choice:

  • For usecases involving classic Bluetooth as well as Bluetooth Low Energy, Bluedroid should be used.
  • For Bluetooth Low Energy-only usecases, using NimBLE is recommended. It is less demanding in terms of code footprint and runtime memory, making it suitable for such scenarios.
.. only:: esp32

    For the overview of the ESP32 Bluetooth stack architecture, follow the links below:

       * `ESP32 Bluetooth Architecture (PDF) <https://espressif.com/sites/default/files/documentation/esp32_bluetooth_architecture_en.pdf>`_

Code examples for this API section are provided in the :example:`bluetooth/bluedroid` directory of ESP-IDF examples.

The following examples contain detailed walkthroughs: