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 です。
仕様書
| 仕様書 |
|---|
| Web Bluetooth> # dom-bluetoothremotegattservice-getcharacteristic> |