提交 3b16000b 编写于 作者: L lverpeng

补充修改

Signed-off-by: Nlverpeng <lverpeng118@163.com>
上级 89aac2ed
......@@ -358,7 +358,7 @@ try {
off(type: 'connectionStateChange', callback?: Callback&lt;[StateChangeParam](#StateChangeParam)&gt;): void
取消订阅a2dp连接状态变化事件。
取消订阅连接状态变化事件。
**需要权限**:ohos.permission.ACCESS_BLUETOOTH
......
# @ohos.bluetooth.ble (蓝牙ble模块)
ble模块提供了访问蓝牙个人区域网相关功能的方法。
ble模块提供了对蓝牙操作和管理的方法。
> **说明:**
>
......@@ -19,7 +19,7 @@ import ble from '@ohos.bluetooth.ble';
createGattServer(): GattServer
创建Gatt profile实例。
创建GattServer实例。
**系统能力**:SystemCapability.Communication.Bluetooth.Core。
......@@ -27,7 +27,7 @@ createGattServer(): GattServer
| 类型 | 说明 |
| ----------------------------- | ---------- |
| GattServer | 返回一个JavaScript Gatt服务的实例。 |
| GattServer | 返回一个Gatt服务的实例。 |
**示例:**
......@@ -2210,7 +2210,7 @@ try {
off(type: 'BLEMtuChange', callback?: Callback&lt;number&gt;): void
订阅Mtu状态变化事件。
取消订阅Mtu状态变化事件。
**需要权限**:ohos.permission.ACCESS_BLUETOOTH
......
# @ohos.bluetooth.pan (蓝牙socket模块)
# @ohos.bluetooth.pan (蓝牙pan模块)
pan模块提供了访问蓝牙个人区域网相关功能的方法。
......
......@@ -4,7 +4,7 @@
> **说明:**
> 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
> 从API Version 9开始,该接口不再维护,推荐使用新接口[bluetoothManager](js-apis-bluetoothManager.md)
> 从API Version 9 开始,该接口不再维护,推荐使用[`@ohos.bluetooth.ble`](js-apis-bluetooth-ble.md)等相关profile接口
......
......@@ -5,6 +5,7 @@
> **说明:**
>
> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
> 从API Version 10 开始,该接口不再维护,推荐使用[`@ohos.bluetooth.ble`](js-apis-bluetooth-ble.md)等相关profile接口。
......
......@@ -3,7 +3,7 @@
> **说明:**
>
> - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.bluetooth`](js-apis-bluetooth.md)
> - 从API Version 7 开始,该接口不再维护,推荐使用[`@ohos.bluetooth.ble`](js-apis-bluetooth-ble.md)等相关profile接口
>
> - 本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
......@@ -200,10 +200,23 @@
|@ohos.bluetooth.ble|[deviceName](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#scanresult)|
|@ohos.bluetooth.ble|[includeDeviceName](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#advertisedata)|
|@ohos.bluetooth.ble|[GattProperties](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#gattproperties)|
|@ohos.bluetooth.ble|[setCharacteristicChangeIndication(characteristic: BLECharacteristic, enable: boolean, callback: AsyncCallback&lt;void&gt;): void](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#setcharacteristicchangeindication)|
|@ohos.bluetooth.ble|[setCharacteristicChangeIndication(characteristic: BLECharacteristic, enable: boolean): Promise&lt;void&gt;](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#setcharacteristicchangeindication-1)|
|@ohos.bluetooth.ble|[on(type: 'BLEMtuChange', callback: Callback&lt;number&gt;): void](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#onblemtuchange)|
|@ohos.bluetooth.ble|[off(type: 'BLEMtuChange', callback?: Callback&lt;number&gt;): void](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#offblemtuchange)|
|@ohos.bluetooth.connection|[pinType](../../../application-dev/reference/apis/js-apis-bluetooth-connection.md#pintype)|
|@ohos.bluetooth.connection|[BluetoothTransport](../../../application-dev/reference/apis/js-apis-bluetooth-connection.md#bluetoothtransport)|
|@ohos.bluetooth.constant|[ProfileUuids](../../../application-dev/reference/apis/js-apis-bluetooth-constant.md#profileuuids)|
### 补充promise调用方式
| 模块名 |新增声明 |
| ------------- |-------------------------------------------------------- |
|@ohos.bluetooth.ble| [notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): Promise&lt;void&gt;](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#notifycharacteristicchanged-1) |
|@ohos.bluetooth.ble| [writeCharacteristicValue(characteristic: BLECharacteristic, writeType: GattWriteType): Promise&lt;void&gt;](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#writecharacteristicvalue-1) |
|@ohos.bluetooth.ble| [writeDescriptorValue(descriptor: BLEDescriptor): Promise&lt;void&gt;](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#writedescriptorvalue-1) |
|@ohos.bluetooth.ble| [setCharacteristicChangeNotification(characteristic: BLECharacteristic, enable: boolean): Promise&lt;void&gt;](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#setcharacteristicchangenotification-1) |
**适配指导**
注意根据不同profile模块选择import方式,部分接口需要import多个TS文件。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册