Skip to content

Commit 667c1b6

Browse files
committed
Merge branch 'bugfix/add_bluedroid_init_migration_v5.4' into 'release/v5.4'
docs(bt/bluedroid): Added migration guide for bluedroid init API[backport v5.4] See merge request espressif/esp-idf!36875
2 parents 952f1aa + 0576fce commit 667c1b6

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Bluetooth Classic
2+
=================
3+
4+
:link_to_translation:`zh_CN:[中文]`
5+
6+
Bluedroid
7+
---------
8+
- The following Bluedroid APIs have been changed:
9+
10+
- :component_file:`/bt/host/bluedroid/api/include/api/esp_bt_main.h`
11+
12+
- The function ``esp_bluedroid_init`` has been deprecated and replaced by ``esp_bluedroid_init_with_cfg``.
13+
- A new configuration structure ``esp_bluedroid_config_t`` has been introduced as a parameter for ``esp_bluedroid_init_with_cfg``. The field ``ssp_en`` in this structure determines the pairing mode.
14+
15+
- The configuration ``CONFIG_BT_SSP_ENABLED`` has been removed, as pairing mode can now be configured at runtime.

docs/en/migration-guides/release-5.x/5.2/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ Migration from 5.1 to 5.2
1313
storage
1414
system
1515
:SOC_WIFI_SUPPORTED: wifi
16+
bluetooth-classic
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
经典蓝牙
2+
=================
3+
4+
:link_to_translation:`en:[English]`
5+
6+
Bluedroid
7+
---------
8+
9+
- 以下 Bluedroid API 发生变更
10+
- :component_file:`/bt/host/bluedroid/api/include/api/esp_bt_main.h`
11+
12+
- 函数 ``esp_bluedroid_init`` 已被弃用,并由 ``esp_bluedroid_init_with_cfg`` 取代。
13+
- 新增配置结构体 ``esp_bluedroid_config_t`` 作为 ``esp_bluedroid_init_with_cfg`` 的参数引入。该结构体中的 ``ssp_en`` 字段用于确定配对模式。
14+
15+
- 配置选项 ``CONFIG_BT_SSP_ENABLED`` 已被移除,因为配对模式现在可以在运行时进行配置。

docs/zh_CN/migration-guides/release-5.x/5.2/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
storage
1414
system
1515
:SOC_WIFI_SUPPORTED: wifi
16+
bluetooth-classic

0 commit comments

Comments
 (0)