Commit Graph
110 Commits
Author SHA1 Message Date
Zhi Wei Jian da29ffba88 fix(examples): improve bluedroid BLE example error handling
Check GAP/GATT event status, fix prepare-write buffer lifecycle, and
align example code with updated Bluedroid API behavior.


(cherry picked from commit bfc47ace48)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-06-12 17:17:37 +08:00
ShenWeilong cf813a4a1e feat(ble): Added ble support for esp32h21 2026-05-20 19:24:08 +08:00
Xiao Xufeng 78c61f2a73 example(ble): increase app partition size of ble examples 2026-05-08 13:44:24 +08:00
yangfeng f1e65d7881 fix(bt/example): fix critical issues of classic_bt examples reported by AI review 2026-05-06 20:17:18 +08:00
cjin 6f7eec029b feat(ble): support ble on esp32s31 2026-04-21 17:50:36 +08:00
wangmengyang 11268d8bfb feat(bt): Add initial support of Bluetooth Classic on ESP32-S31
- feat(soc_caps): Enable BT Classic and BLE in esp32s31
- Add git submodule for ESP32-S31 bt controller lib files
- changed sdkconfig.defaults and README for Bluetooth Classic examples
- change(docs): Added vendor HCI documentations for ESP32-S31
- change(Bluedroid): Adapt to ESP32-S31 due to some API differences on
  Bluetooth controller from ESP32
- change(bt): Modify CMakeLists.txt to support the Bluetooth dual-mode
  architecture on ESP32-S31
- change(bt): Add ECC P-192 functions to tinycrypt
2026-04-21 17:50:34 +08:00
ShenWeilong 6e359ad99e feat(ble): added ble support for esp32h4 eco1 2026-04-02 14:59:40 +08:00
zhiweijian b218e02b49 fix(ble/bluedroid): Fixed Incorrect use of event parameters in gattc_gatts_coex 2026-03-19 16:15:29 +08:00
Island 590be5f98d Merge branch 'bugfix/fix_ble_security_issue_2025_v3' into 'master'
fix(ble/bluedroid): Fix type mismatch and length validation in HCI packet parser

Closes BLERP-2496, BLERP-2494, BLERP-2495, BLERP-2497, and BLERP-2498

See merge request espressif/esp-idf!43903
2025-12-30 10:33:16 +08:00
zhanghaipeng 7cd2f7b34d 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)
2025-12-28 11:19:39 +08:00
yangfeng 3b6b7e8a60 fix(examples/classic_bt): Add A2DP sink delay for AVRCP cover art and absolute volume examples 2025-12-25 11:25:20 +08:00
yangfeng d15acf8a80 refactor: Refactor the example of the coexistence of A2DP sink and GATT service 2025-12-19 11:31:15 +08:00
zhanghaipeng e741f09e0f fix(ble/bluedroid): Fix VLA in a2dp_gatts_coex example 2025-11-27 20:00:55 +08:00
Wang Meng Yang 7cac735da0 Merge branch 'feat/remove_the_deprecated_api_and_parameter' into 'master'
feat(bt): remove the deprecated functions and parameters

Closes BT-4042

See merge request espressif/esp-idf!40435
2025-08-20 19:36:37 +08:00
Marek Fiala 9d35d63651 feat(cmake): Update minimum cmake version to 3.22 (whole repository) 2025-08-19 14:44:32 +02:00
gongyantao 179a730a03 feat(bt): remove the deprecated functions and parametes 2025-08-19 16:07:05 +08:00
Zhou Xiao 7847a82b28 change(ble): resupport ble for ESP32C61ECO3 2025-06-10 14:34:49 +08:00
wanckl 6fde8cf8d2 ci(esp32c61): disable soc_caps, docs, test for eco3 update 2025-05-26 16:04:23 +08:00
Zhou Xiao 2e8d8beb9d change(ble): supported ble for esp32c5-eco2 2025-04-29 14:24:47 +08:00
laokaiyao 9a88effab8 ci: disabled RF soc caps for c5 eco2
Disable the RF soc caps to bypass the build of un-supported RF examples
2025-04-16 11:01:39 +08:00
linruihao a5f620ecfe fix(examples): Fix deprecation warning in a2dp_gatts_coex example 2025-03-28 19:45:18 +08:00
zhanghaipeng a9286567f0 fix(ble/bluedroid): Fix potential uint32_t overflow in BLE btu_start_timer 2025-03-27 16:59:12 +08:00
xiongweichao c2cea8ff26 fix(bt/bluedroid): fixed the format error of passkey printing 2025-02-10 16:46:58 +08:00
Yuan Hong Hui a4ff6ba643 feat(example): add pytest for ble example config test 2024-12-25 18:42:47 +08:00
chenjianhua e5789a8ca1 feat(ble/bluedroid): Support setting connection params when creating connection 2024-11-26 12:10:27 +08:00
zhanghaipeng 7e536a7ba1 fix(ble/bluedroid): Optimize BLE API "esp_ble_gattc_enh_open" 2024-11-26 12:10:27 +08:00
Frantisek Hrbata 1c92945f59 change(examples): switch examples to use a minimal build
Currently, several example dependencies rely on the fact that all
registered components are added to the build, along with components
specified in common requirements. This results in longer build times
because even unused components must be built. Switch all examples to use
idf_minimal_build to compile only the components actually required by
the example.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-11-20 20:14:40 +01:00
Frantisek Hrbata ad15109daa change(examples): explicitly specify component dependencies for examples
Currently, several examples do not explicitly state their component
dependencies, relying instead on the default behavior that includes all
registered components and commonly required ones in the build.
Explicitly adding component dependencies can reduce build time when
set(COMPONENTS main) is used.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-11-20 14:11:24 +01:00
zhanghaipeng b65f8a98bd fix(ble/bluedroid): Fixed BLE create connection fail because of invalid own address type 2024-11-18 17:48:42 +08:00
Shen Weilong bf52e37fa8 feat(ble): added ble support on esp32c61 2024-09-14 12:22:04 +08:00
zhanghaipeng c1fb888cc1 fix(ble/bluedroid): Fixed memory out-of-bounds issue when parsing adv data 2024-08-21 19:27:36 +08:00
Island cd1178298f Merge branch 'docs/optimized_ble_adv_data_type' into 'master'
docs(ble/bluedroid): Optimize BLE example for setting advertising data

Closes BLERP-919

See merge request espressif/esp-idf!32735
2024-08-14 11:14:28 +08:00
zhanghaipeng f9e45f9807 docs(ble/bluedroid): Optimize BLE example for setting advertising data 2024-08-12 10:40:00 +08:00
Island 368cfdac26 Merge branch 'docs/optimized_ble_connect_param_update' into 'master'
docs(ble/bluedroid): Optimize documentation for BLE connection parameter updates

Closes BLERP-892

See merge request espressif/esp-idf!32351
2024-08-12 10:25:37 +08:00
zhanghaipeng 3e98408b92 docs(ble/bluedroid): Optimize documentation for BLE connection parameter updates 2024-08-06 11:17:46 +08:00
Shen Weilong 777b48a494 feat(ble): support ble on esp32c5 2024-07-23 20:12:43 +08:00
Konstantin Kondrashov 668886842f feat(all): Remove usage old log macros 2024-05-15 15:25:30 +08:00
zhiweijian b9a1756202 fix(ble/bluedroid): Remove BLE functions discard declaration
fix(nt/bluedroid): Split the device name set functions

feat(bt/bluedroid): added APIs to get/set device name on BT GAP side

change(bt/common): Marked some APIs in device module as deprecated

1. esp_bt_dev_set_device_name
2. esp_bt_dev_get_device_name

change(bt/bluedroid): use BT GAP APIs to set/get device name in bluetooth classic examples

change(bt/bluedroid): use BT/BLE GAP APIs to set/get device name in coexist examples
2024-04-18 15:53:54 +08:00
zhiweijian 5725595d84 fix(ble/bluedroid): Remove esp_bluedroid_init() discard declaration 2024-04-18 15:53:30 +08:00
Jin Cheng 8582f9bedf fix(bt/bluedroid): corrected the strings of A2DP audio states 2024-01-04 17:52:11 +08:00
Island 562b5795bd Merge branch 'bugfix/ble_coex_gattc_gatts' into 'master'
fix(bt/bluedroid): Update ble gattc gatts coex example

See merge request espressif/esp-idf!28098
2024-01-03 15:00:26 +08:00
zhanghaipeng cfd84e654c fix(bt/bluedroid): Update ble gattc gatts coex example 2023-12-29 12:14:39 +08:00
Wang Meng Yang 4c8f6c5458 Merge branch 'feat/add_get_device_name_api' into 'master'
feat(bt/bluedroid): Added API to get local device name

Closes BT-3526

See merge request espressif/esp-idf!27667
2023-12-27 10:37:33 +08:00
zhanghaipeng ed036e0ebe fix(bt/bluedroid): Fix prepare write for BLE example 2023-12-21 10:59:26 +08:00
Jin Cheng a3f68aef8a feat(bt/bluedroid): Added API to get local device name 2023-12-15 19:30:12 +08:00
Darian Leung 2204c8e137 change(xtensa): Deprecate ".../xtensa_api.h" include path
This commit deprecates the "freertos/xtensa_api.h" and "xtensa/xtensa_api.h"
include paths. Users should use "xtensa_api.h" instead.

- Replace legacy include paths
- Removed some unnecessary includes of "xtensa_api.h"
- Replaced some calls with "esp_cpu_..." equivalents
- Add warning to compatibility header
2023-11-30 21:58:52 +08:00
laokaiyao ef7772eee0 refactor(dac): make dac driver as component 2023-11-23 12:04:06 +08:00
luomanruo 30f4a43556 ci(ble/bluedroid): Add notes in sdkconfig.defaults 2023-11-21 15:00:55 +08:00
gongyantao cbb3da69ae ci(bt/bluedroid): remove configs that are not in effect 2023-11-20 14:32:13 +08:00
laokaiyao 74441d14ab refactor(i2s): make i2s driver as component 2023-11-17 21:29:17 +08:00