Files
esp-idf/examples/bluetooth/bluedroid
Zhang Hai Peng 622990b70e feat(examples/bluedroid): Add BLE time interval conversion macros for better readability
Add macros to convert time values from milliseconds to BLE interval units:
- ESP_BLE_GAP_ADV_ITVL_MS: Convert advertising interval (0.625ms unit)
- ESP_BLE_GAP_SCAN_ITVL_MS: Convert scan interval (0.625ms unit)
- ESP_BLE_GAP_SCAN_WIN_MS: Convert scan window (0.625ms unit)
- ESP_BLE_GAP_CONN_ITVL_MS: Convert connection interval (1.25ms unit)
- ESP_BLE_GAP_PERIODIC_ADV_ITVL_MS: Convert periodic adv interval (1.25ms unit)
- ESP_BLE_GAP_SUPERVISION_TIMEOUT_MS: Convert supervision timeout (10ms unit)


(cherry picked from commit 7cd2f7b34d925f6b4ebcbecf320c2d5a1b2e7036)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-01-07 19:28:30 +08:00
..

Bluetooth Examples for Bluedroid host

Note: To use examples in this directory, you need to have Bluetooth enabled in configuration and Bluedroid selected as the host stack.

Example Layout

The examples are grouped into subdirectories by category. Each category directory contains one or more example projects:

  • ble contains BLE examples
  • ble_50 contains BLE 5.0 examples
  • classic_bt contains Classic BT examples
  • coex contains Classic BT and BLE coex examples

See the README.md file in the upper level examples directory for more information about examples.