From c9c50fc491b05c4b897f77640e456becec615672 Mon Sep 17 00:00:00 2001 From: lverpeng Date: Thu, 3 Aug 2023 10:39:42 +0800 Subject: [PATCH] add changelog Signed-off-by: lverpeng --- .../apis/js-apis-system-bluetooth.md | 2 +- .../v4.0-beta2/changelogs-bluetooth.md | 38 +++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 zh-cn/release-notes/changelogs/v4.0-beta2/changelogs-bluetooth.md diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-bluetooth.md b/zh-cn/application-dev/reference/apis/js-apis-system-bluetooth.md index 3efeff8a95..4806d90655 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-bluetooth.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-bluetooth.md @@ -3,7 +3,7 @@ > **说明:** > -> - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.bluetooth`](js-apis-bluetooth.md)。 +> - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.bluetoothManager`](js-apis-bluetoothManager.md)。 > > - 本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/release-notes/changelogs/v4.0-beta2/changelogs-bluetooth.md b/zh-cn/release-notes/changelogs/v4.0-beta2/changelogs-bluetooth.md new file mode 100644 index 0000000000..704f92dcad --- /dev/null +++ b/zh-cn/release-notes/changelogs/v4.0-beta2/changelogs-bluetooth.md @@ -0,0 +1,38 @@ +# bluetooth子系统ChangeLog + +## cl.bluetooth.1 蓝牙模块新增接口,属性及枚举 + +**变更影响** + +新增接口,提供通过非蓝牙扫描的方式(例如NFC等)获取到外设的地址,发起配对的能力;支持profile的连接管理设置能力等。 + +**关键接口/组件变更** + +| 模块名 |新增声明 | +| ------------- |-------------------------------------------------------- | +|@ohos.bluetoothManager| [pairCredibleDevice(deviceId: string, transport: BluetoothTransport, callback: AsyncCallback<void>): void](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagerpaircredibledevice10) | +|@ohos.bluetoothManager| [pairCredibleDevice(deviceId: string, transport: BluetoothTransport): Promise<void>](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagerpaircredibledevice10-1) | +|@ohos.bluetoothManager| [getRemoteProfileUuids(device: string, callback: AsyncCallback<Array<ProfileUuids>>): void](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagergetremoteprofileuuids10) | +|@ohos.bluetoothManager| [getRemoteProfileUuids(device: string): Promise<Array<ProfileUuids>>](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagergetremoteprofileuuids10-1) | +|@ohos.bluetoothManager| [getLocalProfileUuids(callback: AsyncCallback<Array<ProfileUuids>>): void](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagergetlocalprofileuuids10) | +|@ohos.bluetoothManager| [getLocalProfileUuids(): Promise<Array<ProfileUuids>>](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagergetlocalprofileuuids10-1) | +|@ohos.bluetoothManager| [setDevicePinCode(device: string, code: string, callback: AsyncCallback<void>): void](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagersetdevicepincode10) | +|@ohos.bluetoothManager| [setDevicePinCode(device: string, code: string): Promise<void>](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagersetdevicepincode10-1) | +|@ohos.bluetoothManager| [setConnectionStrategy(device: string, strategy: ConnectionStrategy, callback: AsyncCallback<void>): void](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagersetconnectionstrategy10)| +|@ohos.bluetoothManager| [setConnectionStrategy(device: string, strategy: ConnectionStrategy): Promise<void>](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagersetconnectionstrategy10-1) | +|@ohos.bluetoothManager| [getConnectionStrategy(device: string, callback: AsyncCallback<ConnectionStrategy>): void](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagergetconnectionstrategy10)| +|@ohos.bluetoothManager| [getConnectionStrategy(device: string): Promise<ConnectionStrategy>](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagergetconnectionstrategy10-1) | +|@ohos.bluetoothManager|[ConnectionStrategy](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#connectionstrategy10)| +|@ohos.bluetoothManager|[properties](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#blecharacteristic)| +|@ohos.bluetoothManager|[deviceName](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#scanresult)| +|@ohos.bluetoothManager|[includeDeviceName](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#advertisedata)| +|@ohos.bluetoothManager|[GattProperties](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#gattproperties10)| +|@ohos.bluetoothManager|[pinType](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#pintype10)| +|@ohos.bluetoothManager|[BluetoothTransport](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothtransport10)| +|@ohos.bluetoothManager|[ProfileUuids](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#profileuuids10)| + +**适配指导** + +请参考各新增接口文档下的示例。 + + -- GitLab