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