BluetoothRemoteGATTService
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
Web Bluetooth API の BluetoothRemoteGATTService インターフェイスは、GATT サーバーにより提供されるサービスを表します。デバイス、参照されるサービス、このサービスのキャラクタリスティックのリストも含みます。
インスタンスプロパティ
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> |
ブラウザーの互換性
Loading…