Bluetooth API ************* .. toctree:: :maxdepth: 2 Bluetooth Controller && VHCI Bluetooth Common Bluetooth LE Bluetooth Classic NimBLE ESP-BLE-MESH ESP-IDF currently supports two host stacks. The Bluedroid based stack (default) supports classic Bluetooth as well as BLE. On the other hand, Apache NimBLE based stack is BLE only. For users to make a * For usecases involving classic Bluetooth as well as BLE, Bluedroid should be used. * For BLE-only usecases, using NimBLE is recommended. It is less demanding in terms of code footprint and runtime memory, making it suitable for such scenarios. To see the overview of the ESP32 Bluetooth stack architecture, follow links below: * `ESP32 Bluetooth Architecture (PDF) [English] `_ * `ESP32 Bluetooth Architecture (PDF) [中文] `_ Example code for this API section is provided in :example:`bluetooth` directory of ESP-IDF examples. Several examples contain detailed description. To see them please follow links below: * :example_file:`GATT Client Example Walkthrough ` * :example_file:`GATT Server Service Table Example Walkthrough ` * :example_file:`GATT Server Example Walkthrough ` * :example_file:`GATT Security Client Example Walkthrough ` * :example_file:`GATT Security Server Example Walkthrough ` * :example_file:`GATT Client Multi-connection Example Walkthrough `