• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Bluetooth Subsystem Changelog
2
3## cl.bluetooth.1 New APIs, Attributes, and Enums
4
5**Change Impact**
6
7Added APIs to provide capabilities of obtaining the peripheral device address in non-Bluetooth scan mode (for example NFC), initiating pairing, and setting profile connection management.
8
9**Key API/Component Changes**
10
11| Module        |API                                                |
12| ------------- |-------------------------------------------------------- |
13|@ohos.bluetoothManager| [pairCredibleDevice(deviceId: string, transport: BluetoothTransport, callback: AsyncCallback<void>): void](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagerpaircredibledevice10)    |
14|@ohos.bluetoothManager| [pairCredibleDevice(deviceId: string, transport: BluetoothTransport): Promise<void>](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagerpaircredibledevice10-1)    |
15|@ohos.bluetoothManager| [getRemoteProfileUuids(device: string, callback: AsyncCallback<Array<ProfileUuids>>): void](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagergetremoteprofileuuids10)    |
16|@ohos.bluetoothManager| [getRemoteProfileUuids(device: string): Promise<Array<ProfileUuids>>](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagergetremoteprofileuuids10-1)    |
17|@ohos.bluetoothManager| [getLocalProfileUuids(callback: AsyncCallback<Array<ProfileUuids>>): void](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagergetlocalprofileuuids10)    |
18|@ohos.bluetoothManager| [getLocalProfileUuids(): Promise<Array<ProfileUuids>>](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagergetlocalprofileuuids10-1)    |
19|@ohos.bluetoothManager| [setDevicePinCode(device: string, code: string, callback: AsyncCallback<void>): void](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagersetdevicepincode10)    |
20|@ohos.bluetoothManager| [setDevicePinCode(device: string, code: string): Promise<void>](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagersetdevicepincode10-1)    |
21|@ohos.bluetoothManager| [setConnectionStrategy(device: string, strategy: ConnectionStrategy, callback: AsyncCallback<void>): void](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagersetconnectionstrategy10)|
22|@ohos.bluetoothManager| [setConnectionStrategy(device: string, strategy: ConnectionStrategy): Promise<void>](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagersetconnectionstrategy10-1) |
23|@ohos.bluetoothManager| [getConnectionStrategy(device: string, callback: AsyncCallback<ConnectionStrategy>): void](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagergetconnectionstrategy10)|
24|@ohos.bluetoothManager| [getConnectionStrategy(device: string): Promise<ConnectionStrategy>](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothmanagergetconnectionstrategy10-1) |
25|@ohos.bluetoothManager|[ConnectionStrategy](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#connectionstrategy10)|
26|@ohos.bluetoothManager|[properties](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#blecharacteristic)|
27|@ohos.bluetoothManager|[deviceName](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#scanresult)|
28|@ohos.bluetoothManager|[includeDeviceName](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#advertisedata)|
29|@ohos.bluetoothManager|[GattProperties](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#gattproperties10)|
30|@ohos.bluetoothManager|[pinType](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#pintype10)|
31|@ohos.bluetoothManager|[BluetoothTransport](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#bluetoothtransport10)|
32|@ohos.bluetoothManager|[ProfileUuids](../../../application-dev/reference/apis/js-apis-bluetoothManager.md#profileuuids10)|
33
34**Adaptation Guide**
35
36For details, see examples in the related API references.
37