BluetoothRemoteGATTCharacteristic: getDescriptors() 方法
BluetoothRemoteGATTCharacteristic.getDescriptors() 方法返回一个 Promise,该 Promise 会解析为一个 Array,其中包含给定描述符 UUID 的所有 BluetoothRemoteGATTDescriptor 对象。
语法
js
getDescriptors(bluetoothDescriptorUUID)
参数
无。
返回值
一个 Promise,它会解析为一个 Array,其中包含 BluetoothRemoteGATTDescriptor 对象。
规范
| 规范 |
|---|
| Web 蓝牙 # dom-bluetoothremotegattcharacteristic-getdescriptors |
浏览器兼容性
加载中…