Bluetooth Subsystem Changelog
cl.bluetooth.1 New APIs, Attributes, and Enums
Change Impact
Added 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.
Key API/Component Changes
Module |
API |
@ohos.bluetoothManager |
pairCredibleDevice(deviceId: string, transport: BluetoothTransport, callback: AsyncCallback<void>): void |
@ohos.bluetoothManager |
pairCredibleDevice(deviceId: string, transport: BluetoothTransport): Promise<void> |
@ohos.bluetoothManager |
getRemoteProfileUuids(device: string, callback: AsyncCallback<Array<ProfileUuids>>): void |
@ohos.bluetoothManager |
getRemoteProfileUuids(device: string): Promise<Array<ProfileUuids>> |
@ohos.bluetoothManager |
getLocalProfileUuids(callback: AsyncCallback<Array<ProfileUuids>>): void |
@ohos.bluetoothManager |
getLocalProfileUuids(): Promise<Array<ProfileUuids>> |
@ohos.bluetoothManager |
setDevicePinCode(device: string, code: string, callback: AsyncCallback<void>): void |
@ohos.bluetoothManager |
setDevicePinCode(device: string, code: string): Promise<void> |
@ohos.bluetoothManager |
setConnectionStrategy(device: string, strategy: ConnectionStrategy, callback: AsyncCallback<void>): void |
@ohos.bluetoothManager |
setConnectionStrategy(device: string, strategy: ConnectionStrategy): Promise<void> |
@ohos.bluetoothManager |
getConnectionStrategy(device: string, callback: AsyncCallback<ConnectionStrategy>): void |
@ohos.bluetoothManager |
getConnectionStrategy(device: string): Promise<ConnectionStrategy> |
@ohos.bluetoothManager |
ConnectionStrategy |
@ohos.bluetoothManager |
properties |
@ohos.bluetoothManager |
deviceName |
@ohos.bluetoothManager |
includeDeviceName |
@ohos.bluetoothManager |
GattProperties |
@ohos.bluetoothManager |
pinType |
@ohos.bluetoothManager |
BluetoothTransport |
@ohos.bluetoothManager |
ProfileUuids |
Adaptation Guide
For details, see examples in the related API references.