BluetoothRemoteGATTService: getCharacteristic() 方法
BluetoothGATTService.getCharacteristic() 方法返回一个 Promise,该 Promise 解析为一个 BluetoothRemoteGATTCharacteristic 实例,对应给定的通用唯一标识符 (UUID)。
语法
js
getCharacteristic(characteristic)
参数
characteristic-
特征的 UUID,例如,用于心率测量特征的
'00002a37-0000-1000-8000-00805f9b34fb'。
返回值
一个 Promise,它解析为一个 BluetoothRemoteGATTCharacteristic 实例。
规范
| 规范 |
|---|
| Web 蓝牙 # dom-bluetoothremotegattservice-getcharacteristic |
浏览器兼容性
加载中…