esp-idf/docs/zh_CN/migration-guides/release-5.x/5.3/bluetooth-classic.rst
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

20 lines
747 B
ReStructuredText

经典蓝牙
=================
:link_to_translation:`en:[English]`
Bluedroid
---------
以下 Bluedroid API 已被废弃:
- :component_file:`/bt/host/bluedroid/api/include/api/esp_bt_device.h`
- 废弃 ``esp_err_t esp_bt_dev_set_device_name(const char *name)``
- 设置设备名 API 已被替换为 ``esp_err_t esp_bt_gap_set_device_name(const char *name)````esp_err_t esp_ble_gap_set_device_name(const char *name)``。 原来的函数已经被废弃。
- 废弃 ``esp_err_t esp_bt_dev_get_device_name(void)``
- 获取设备名 API 已被替换为 ``esp_err_t esp_bt_gap_get_device_name(void)````esp_err_t esp_ble_gap_get_device_name(void)``。 原来的函数已经被废弃。