Commit Graph

1339 Commits

Author SHA1 Message Date
Rahul Tank 24962cc3fe fix(nimble): Improve safety, fix bugs, and update docs across NimBLE examples
- Remove unused headers from examples
- Improve periodic adv/sync example functionality and readability
- Use ble_hs_id_infer_auto() instead of hardcoded BLE_OWN_ADDR_PUBLIC/RANDOM
- Add ble_hs_util_ensure_addr() calls in on_sync for proper address setup
- Use correct ext adv instance (0 instead of 1) in phy_prph, l2cap_coc, multi_conn
- Fix struct name: ble_gap_periodic_adv_enable_params -> ble_gap_periodic_adv_start_params
- Add CONFIG_BT_NIMBLE_GAP_SERVICE guards around ble_svc_gap_device_name_set
- Fix unsafe AD data parsing with bounds checks in central examples
- Fix UUID matching bugs (off-by-one loop condition and byte order) in
  phy_cent, htp_cent, and proximity_sensor_cent
- Fix ble_multi_conn_cent address type to use dynamic inference
- Remove contradictory sm_sc=0 after sm_sc=1 in ble_multi_adv
- Add CONFIG_BT_NIMBLE_EXT_ADV=y to ble_multi_adv sdkconfig defaults
- Check return values for ble_gap_set_host_feat, nimble_port_init
- Update tutorials and READMEs to match code changes
2026-02-25 13:04:23 +05:30
Rahul Tank 77e3d0a120 fix(nimble): Fix various issues for security/vulnerability in host 2026-02-23 14:11:23 +05:30
Rahul Tank 32cd231a95 fix(nimble): Bugfixes for various issues 2026-02-16 11:22:53 +05:30
Jiang Jiang Jian 67a274e516 Merge branch 'bugfix/fix_some_wifi_bugs_260212_v5.3' into 'release/v5.3'
fix(wifi): fix some wifi bugs 260212(Backport v5.3)

See merge request espressif/esp-idf!45846
2026-02-13 11:55:50 +08:00
muhaidong dc79fdf103 fix(wifi): fix lmac tx done assert issue 2026-02-12 17:12:25 +08:00
Rahul Tank 76a004650d fix(nimble): Fix ble_multi_adv example to show correct UUIDs information 2026-02-11 12:41:18 +05:30
Rahul Tank 6b497115c5 Merge branch 'bugfix/security_fixes_for_examples_v5.3' into 'release/v5.3'
fix(nimble): Fix vulnerabilities in NimBLE examples (v5.3)

See merge request espressif/esp-idf!45483
2026-02-09 14:24:30 +05:30
Island 011e0ce95b Merge branch 'feat/ble_mesh_alignment_to_v6.0_v5.3' into 'release/v5.3'
feat(ble_mesh): alignment to release/v6.0 (v5.3)

See merge request espressif/esp-idf!45453
2026-02-09 11:35:46 +08:00
Shreeyash 5319914af2 fix(nimble): Fix vulnerabilities in NimBLE examples 2026-02-06 18:47:08 +05:30
luoxu 7af8021ca2 feat(ble_mesh): alignment to release/v6.0 2026-02-04 14:28:38 +08:00
Astha Verma 22256e66a1 fix(nimble): Added device name log for ext adv in blecent_throughput 2026-02-03 16:30:07 +05:30
zhiweijian 6f48dddbc2 fix(ble/bluedroid): Fixed bluedroid examples CI failed 2026-01-31 10:54:13 +08:00
zhiweijian f84b0e9a39 fix(ble/bluedroid): Change blufi sdkconfig 2026-01-30 20:21:19 +08:00
zhiweijian 79dec2082d fix(ble/bluedroid): Change 5.0 event status 2026-01-30 20:21:09 +08:00
zhiweijian 9df0361dd6 feat(ble/bluedroid): Add new bluedroid host examples 2026-01-30 20:20:33 +08:00
Astha Verma bdb3f7ef77 fix(nimble): Reset HID service during deinit 2026-01-28 12:18:28 +08:00
Jin Cheng a68d4674e8 fix(bt/bluedroid): add status management for audio sink service channel 2026-01-15 09:14:56 +08:00
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
zhanghaipeng 05376b61e1 fix(ble/hci): Fix OOB read in ble_adv_scan_combined example 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 4b4e0427f9 fix(ble/bluedroid): Added security check in example Bluedroid_GATT_Server
(cherry picked from commit a36bf7fe14)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-01-06 10:34:53 +08:00
yangfeng 76a279798d refactor(examples/classic_bt): Add example tests for A2DP and AVRCP examples 2025-12-25 11:01:59 +08:00
yangfeng 9bd5f968bf docs: Add explanations for the A2DP sink stream and AVRCP examples
- Modify the path of A2DP sink example
2025-12-25 11:01:59 +08:00
yangfeng 41ee112dc1 refactor: Refactor the example of the coexistence of A2DP sink and GATT service 2025-12-25 11:01:53 +08:00
yangfeng 3298da92e1 refactor(examples/classic_bt): Refactor A2DP sink and AVRCP examples
- Add avrcp_ct_metadata example
- Add avrcp_absolute_volume example
- Add the example components about common code for a2dp sink and avrcp
2025-12-25 10:59:57 +08:00
Rahul Tank 8eea019697 feat(nimble): Add support for static passkey 2025-12-22 21:17:50 +05:30
Island 87157acc06 Merge branch 'bugfix/fix_ble_security_issue_2025_v5.3' into 'release/v5.3'
Fix potential CVE-2024-0039 out-of-bounds write in attp_build_value_cmd (v5.3)

See merge request espressif/esp-idf!43805
2025-12-18 10:56:22 +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
yangfeng 12ea0d186b fix(bt/example): Fixed hf_ag build error 2025-12-09 14:21:58 +08:00
Chen Yudong 164cfba69d ci: rename wifi_two_dut to two_duts 2025-12-03 12:34:10 +08:00
Zhang Hai Peng a19f21b7ba fix(ble/bluedroid): Fix VLA in a2dp_gatts_coex example
(cherry picked from commit e741f09e0f)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:02 +08:00
Zhang Hai Peng 70e75d7b63 fix(ble/bt): Add NULL check in esp_hid_device example
(cherry picked from commit 8e0f74a2cc)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:00 +08:00
Zhang Hai Peng 667c4769fc fix(ble/bt): Add NULL check in esp_hid_host example
(cherry picked from commit 8b5dd75368)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:00 +08:00
Zhang Hai Peng 0406ad7c7d fix(ble/blufi): Add DH param length validation
(cherry picked from commit 773814c087)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:53:59 +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 563f462986 Merge branch 'feature/extend_h2_conon_num_to_70_v5.3' into 'release/v5.3'
change(ble): Updated the maximum number of concurrent connections to 70 on ESP32-H2 (v5.3)

See merge request espressif/esp-idf!43833
2025-12-02 16:38:16 +08:00
Luo Xu 65c98b699c fix(ble_mesh): add proper memory cleanup in composition data parsing
(cherry picked from commit a45bb6c5da)

Co-authored-by: luoxu <luoxu@espressif.com>
2025-11-28 17:43:42 +08:00
Shen Wei Long 2c7966ea9c change(ble): Updated the maximum number of concurrent connections to 70 on ESP32-H2
(cherry picked from commit cd33f13521)

Co-authored-by: ShenWeilong <shenweilong@espressif.com>
2025-11-28 09:06:11 +00:00
Wang Meng Yang 235c50f345 Merge branch 'bugfix/bt_idf_ci_v5.3' into 'release/v5.3'
fix(bt/examples): Fixed test_bt_l2cap not finding ESP_SDP_CREATE_RECORD_COMP_EVT (v5.3)

See merge request espressif/esp-idf!43605
2025-11-24 14:06:26 +08:00
yangfeng 18c3237449 fix(bt/examples): Fixed test_bt_l2cap not finding ESP_SDP_CREATE_RECORD_COMP_EVT 2025-11-21 19:33:08 +08:00
Rasmus Buurman 23b351acdf fix(examples): Fix typos in NimBLE example comments 2025-11-11 11:39:54 +05:30
Rahul Tank 3591e526f0 fix(nimble): Address compilation issues in nimble examples 2025-10-30 11:37:18 +05:30