BluetoothRemoteGATTService

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

Web Bluetooth APIBluetoothRemoteGATTService インターフェイスは、GATT サーバーにより提供されるサービスを表します。デバイス、参照されるサービス、このサービスのキャラクタリスティックのリストも含みます。

EventTarget BluetoothRemoteGATTService

インスタンスプロパティ

BluetoothRemoteGATTService.device 読取専用 Experimental

BluetoothDevice のインスタンスを通じて、この Bluetooth デバイスの情報を返します。

BluetoothRemoteGATTService.isPrimary 読取専用 Experimental

これがプライマリーサービスなのかセカンダリーサービスなのかを表す論理値を返します。

BluetoothRemoteGATTService.uuid 読取専用 Experimental

このサービスの UUID を表す文字列を返します。

インスタンスメソッド

BluetoothRemoteGATTService.getCharacteristic() Experimental

指定の universally unique identifier (UUID) に対応する BluetoothRemoteGATTCharacteristic のインスタンスで解決する Promise を返します。

BluetoothRemoteGATTService.getCharacteristics() Experimental

省略可能な universally unique identifier (UUID) に対応する BluetoothRemoteGATTCharacteristic のインスタンスの Array で解決する Promise を返します。

仕様書

Specification
Web Bluetooth
# bluetoothgattservice-interface

ブラウザーの互換性

BCD tables only load in the browser