Commit Graph
164 Commits
Author SHA1 Message Date
Rahul Tank 7a979f3bde fix(nimble): Add AD type macros in example 2026-01-14 10:54:26 +05:30
Island 6cd6db4d63 Merge branch 'bugfix/fix_ble_security_issue_2025_v3_v5.3' into 'release/v5.3'
fix(ble/bluedroid): Fix type mismatch and length validation in HCI packet parser (v5.3)

See merge request espressif/esp-idf!44665
2026-01-09 11:43:41 +08:00
zhiweijian df21eb8934 fix(ble/bluedroid): Replaced the psa_ api with the mbedtls_ api 2026-01-06 21:14:19 +08:00
zhiweijian b499bbef2b feat(ble/bluedroid): Support bluedroid encrypted advertising data 2026-01-06 20:45:56 +08:00
Zhang Hai Peng e81cca4f2f feat(examples/bluedroid): add BLE ACL latency measurement example
(cherry picked from commit 934970a06f)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-01-06 10:34:53 +08:00
Zhang Hai Peng 83132234ca docs(ble): add flow diagrams to bluedroid BLE examples
(cherry picked from commit 051077835c)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-01-06 10:34:53 +08:00
Zhang Hai Peng 204d383817 refactor(examples/bluedroid): Replace hardcoded ADV type values with macros
(cherry picked from commit fdeb5ad87a)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-01-06 10:34:53 +08:00
Zhang Hai Peng e4a3afc445 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 7cd2f7b34d)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-01-06 10:34:53 +08:00
Zhang Hai Peng 17174fd729 fix(ble/bluedroid): Add bounds check in ble_ancs example
(cherry picked from commit 7e876249df)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-12 20:56:25 +08:00
Zhang Hai Peng cee1c04124 fix(ble/bluedroid): Fix memory leak in ble_spp_server example
(cherry picked from commit b6b3b81bf6)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:53:59 +08:00
Zhang Hai Peng 580d49365f fix(ble/bluedroid): Use calloc in gatt_server example
(cherry picked from commit e26b60090d)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:53:56 +08:00
Zhang Hai Peng cb9c6ee858 fix(ble/bluedroid): Use snprintf in ble_eddystone example
(cherry picked from commit 24e023e307)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:53:56 +08:00
Island 3387b68c4d Merge branch 'opt/opt_ble_hid_example_pair_fail_v5.3' into 'release/v5.3'
fix(ble/bluedroid): set sec_conn only on successful pairing in ble_hid_device_demo (v5.3)

See merge request espressif/esp-idf!40901
2025-08-21 10:58:58 +08:00
Island 4146a0db5c Merge branch 'bugfix/ble_enhanced_security_v2_v5.3' into 'release/v5.3'
fix(ble/bluedroid): Fixed potential out-of-bounds memory access when resolve adv data (v5.3)

See merge request espressif/esp-idf!41305
2025-08-20 11:18:17 +08:00
Chen Jian Hua b1ee1df6ae feat(ble/bluedroid): Added BLE multiple connections examples
(cherry picked from commit b8996f3953)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-08-18 14:13:10 +08:00
Zhang Hai PengandCody 57ec0dec15 fix(ble/bluedroid): Update Gatt_Server_Service_Table_Example_Walkthrough.md
(cherry picked from commit 6b360dacf6)

Co-authored-by: Cody <codyhubman4@gmail.com>
2025-08-15 14:53:50 +08:00
Zhang Hai PengandBLKDASH 4aef14cd2d fix(ble/bluedroid): Fixed the problem of macro definition error
(cherry picked from commit 6b212c7d47)

Co-authored-by: BLKDASH <128231495+BLKDASH@users.noreply.github.com>
2025-08-15 14:53:48 +08:00
Zhang Hai Peng eceae1c888 fix(ble/bluedroid): set sec_conn only on successful pairing in ble_hid_device_demo
(cherry picked from commit 50fe55ca59)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-07-29 21:53:30 +08:00
zwl ae8047d36a feat(ble): add configuration command during RF testing 2025-04-24 16:08:05 +08:00
zhangbowen 3f6cc98495 feat(bt/bluedroid): Added throughput mode for BLE SPP example 2025-04-24 16:07:42 +08:00
Island ee7e35a3fc Merge branch 'feat/optimize_cble50y24_111_v5.3' into 'release/v5.3'
feat(bt/bluedroid): Added BLE eddystone sender example (v5.3)

See merge request espressif/esp-idf!38157
2025-04-23 10:32:26 +08:00
Island 2216ed92a0 Merge branch 'bugfix/fix_some_ble_bugs_2503_v5.3' into 'release/v5.3'
Bugfix/fix some ble bugs 2503 (v5.3)

See merge request espressif/esp-idf!38290
2025-04-22 11:48:59 +08:00
Chen Jian Huaandzhangbowen eea10e1039 feat(bt/bluedroid): Added BLE eddystone sender example
(cherry picked from commit 06366353d8)

Co-authored-by: zhangbowen <zhangbowen@espressif.com>
2025-04-21 20:24:03 +08:00
Zhang Hai Peng d72a674119 fix(ble/bluedroid): Fix potential uint32_t overflow in BLE btu_start_timer
(cherry picked from commit a9286567f0)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-08 16:42:27 +08:00
Zhang Hai Peng 587eae152f feat(ble/bluedroid): Add Read Long Characteristic Values example
(cherry picked from commit 32e4fb79e8)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-03-04 22:13:35 +08:00
Zhang Hai PengandErast  61893e9fe5 docs(ble/bluedroid): Optimize doc for implementation of a characteristic with 128 bit UUID
(cherry picked from commit fa40d971a5)

Co-authored-by: Erast  <78802792+MatoiDev@users.noreply.github.com>
2025-02-17 11:15:19 +08:00
Zhang Hai Peng ed51c0b6b2 docs(ble/bluedroid): Optimize doc for registering BLE callback functions
(cherry picked from commit d84ccadf90)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-06 11:13:53 +08:00
zhanghaipeng a50df596ef docs(ble/bluedroid): Optimize BLE example documentation 2024-12-17 11:16:16 +08:00
zhanghaipeng 6718fc73b1 feat(bt): Add support for converting BT HCI logs to btsnoop format 2024-12-09 17:55:37 +08:00
chenjianhua 561307a6bf feat(ble/bluedroid): Support setting connection params when creating connection 2024-12-06 15:51:33 +08:00
zhanghaipeng 3a85b1b6ce fix(ble/bluedroid): Optimize BLE API "esp_ble_gattc_enh_open" 2024-12-06 15:50:50 +08:00
zhanghaipeng 2904494228 fix(ble/bluedroid): Fixed BLE create connection fail because of invalid own address type 2024-12-06 15:50:43 +08:00
chenjianhua 0b8bec3fa5 refactor(bt/bluedroid): Refactor the print for BLE examples 2024-10-24 12:03:56 +08:00
chenjianhua f6bedd65b6 refactor(bt/bluedroid): Refactor the print for gatt_server and gatt_client example 2024-10-24 12:03:56 +08:00
Island 0593e04dee Merge branch 'docs/optimized_ble_adv_data_type_v5.3' into 'release/v5.3'
docs(ble/bluedroid): Optimize BLE example for setting advertising data (v5.3)

See merge request espressif/esp-idf!32755
2024-09-09 10:35:05 +08:00
zhanghaipeng af9ebecc1d fix(ble/bluedroid): Fixed memory out-of-bounds issue when parsing adv data 2024-09-07 12:25:10 +08:00
zhanghaipeng 01f46017d9 docs(ble/bluedroid): Optimize documentation for BLE connection parameter updates 2024-08-29 16:38:17 +08:00
zhanghaipeng dc428a3854 docs(ble/bluedroid): Optimize BLE example documentation for getting characteristic 2024-08-29 16:17:39 +08:00
zhanghaipeng 87ec32e738 docs(ble/bluedroid): Optimize BLE example for setting advertising data 2024-08-12 11:32:34 +08:00
zhanghaipeng e10c977834 fix(ble/bluedroid): Fixed BLE no data length change event 2024-06-02 17:36:35 +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
zhanghaipeng b0a84f76a2 fix(ble/bluedroid): Optimized BLE SPP example for improved compatibility 2024-04-01 16:31:26 +08:00
zhanghaipeng f812863827 fix(ble/bluedroid): Optimize the BLE documentation 2024-03-15 20:02:13 +08:00
Raghu Saxena 82a711d4e2 fix(bt/example): Use correct struct type 2024-02-27 22:32:14 +08:00
fl0wl0w 90d1dcfd76 feat(freertos): Introduced new Kconfig option CONFIG_FREERTOS_NUMBER_OF_CORES
This commit replaces the use of portNUM_PROCESSORS and configNUM_CORES
macros in all of ESP-IDF. These macros are needed to realize an SMP
scenario by fetching the number of active cores FreeRTOS is running on.
Instead, a new Kconfig option, CONFIG_FREERTOS_NUMBER_OF_CORES, has been
added as a proxy for the FreeRTOS config option, configNUMBER_OF_CORES.
This new commit is now used to realize an SMP scenario in various places
in ESP-IDF.

[Sudeep Mohanty: Added new Kconfig option CONFIG_FREERTOS_NUMBER_OF_CORES]

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2024-02-09 09:11:28 +01: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 216b9da33d fix(bt/bluedroid): Optimize ble remove all bonded devices function 2023-12-29 19:28:06 +08:00
zhanghaipeng 96626cb110 fix(bt/bluedroid): Update ble ibeacon example document 2023-12-29 14:16:11 +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