BluetoothRemoteGATTService: getCharacteristic() メソッド

Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。

BluetoothGATTService.getCharacteristic() メソッドは、指定の universally unique identifier (UUID) に対応する BluetoothRemoteGATTCharacteristic のインスタンスで解決する Promise を返します。

構文

js
getCharacteristic(characteristic)

引数

characteristic

キャラクタリスティックの UUID です。たとえば、Heart Rate Measurement characteristic は '00002a37-0000-1000-8000-00805f9b34fb' です。

返値

BluetoothRemoteGATTCharacteristic のインスタンスで解決する Promise です。

仕様書

Specification
Web Bluetooth
# dom-bluetoothremotegattservice-getcharacteristic

ブラウザーの互換性

BCD tables only load in the browser