diff --git a/docs/en/migration-guides/release-5.x/5.2/bluetooth-classic.rst b/docs/en/migration-guides/release-5.x/5.2/bluetooth-classic.rst new file mode 100644 index 0000000000..a8c8290e8b --- /dev/null +++ b/docs/en/migration-guides/release-5.x/5.2/bluetooth-classic.rst @@ -0,0 +1,15 @@ +Bluetooth Classic +================= + +:link_to_translation:`zh_CN:[中文]` + +Bluedroid +--------- + + The following Bluedroid API have been removed: + + - :component_file:`bt/host/bluedroid/api/include/api/esp_bt_main.h` + + - Remove ``esp_err_t esp_bluedroid_init(void)`` + + - Bluedroid stack initialization API has been replaced by ``esp_err_t esp_bluedroid_init_with_cfg(esp_bluedroid_config_t *cfg)``. Macro ``BT_BLUEDROID_INIT_CONFIG_DEFAULT()`` provides the default configuration for the initialization. The original function can be deleted directly. diff --git a/docs/en/migration-guides/release-5.x/5.2/index.rst b/docs/en/migration-guides/release-5.x/5.2/index.rst index eea59de043..a4634a8ddb 100644 --- a/docs/en/migration-guides/release-5.x/5.2/index.rst +++ b/docs/en/migration-guides/release-5.x/5.2/index.rst @@ -6,6 +6,7 @@ Migration from 5.1 to 5.2 .. toctree:: :maxdepth: 1 + bluetooth-classic gcc peripherals protocols diff --git a/docs/zh_CN/migration-guides/release-5.x/5.2/bluetooth-classic.rst b/docs/zh_CN/migration-guides/release-5.x/5.2/bluetooth-classic.rst new file mode 100644 index 0000000000..9deff911b8 --- /dev/null +++ b/docs/zh_CN/migration-guides/release-5.x/5.2/bluetooth-classic.rst @@ -0,0 +1,15 @@ +经典蓝牙 +================= + +:link_to_translation:`en:[English]` + +Bluedroid +--------- + + 以下 Bluedroid API 已被移除: + + - :component_file:`bt/host/bluedroid/api/include/api/esp_bt_main.h` + + - 移除 ``esp_err_t esp_bluedroid_init(void)`` + + - Bluedroid 协议栈初始化 API 已被替换为 ``esp_err_t esp_bluedroid_init_with_cfg(esp_bluedroid_config_t *cfg)``。宏 ``BT_BLUEDROID_INIT_CONFIG_DEFAULT()`` 用于提供默认的初始化参数。原来的初始化函数可以直接删除。 diff --git a/docs/zh_CN/migration-guides/release-5.x/5.2/index.rst b/docs/zh_CN/migration-guides/release-5.x/5.2/index.rst index e0b3a2f93f..46f38b0d1e 100644 --- a/docs/zh_CN/migration-guides/release-5.x/5.2/index.rst +++ b/docs/zh_CN/migration-guides/release-5.x/5.2/index.rst @@ -6,6 +6,7 @@ .. toctree:: :maxdepth: 1 + bluetooth-classic gcc peripherals protocols