BluetoothRemoteGATTServer
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
Web Bluetooth API の BluetoothRemoteGATTServer インターフェイスは、リモートデバイス上の GATT サーバーを表します。
インスタンスプロパティ
BluetoothRemoteGATTServer.connected読取専用 Experimental-
このスクリプト実行環境が
this.deviceに接続されている間trueを返す論理値です。ユーザーエージェントが物理的に接続されていてもfalseになる可能性があります。 BluetoothRemoteGATTServer.device読取専用 Experimental-
このサーバーを動かしている
BluetoothDeviceへの参照です。
インスタンスメソッド
BluetoothRemoteGATTServer.connect()Experimental-
このスクリプト実行環境を
this.deviceに接続させます。 BluetoothRemoteGATTServer.disconnect()Experimental-
このスクリプト実行環境を
this.deviceから切断させます。 BluetoothRemoteGATTServer.getPrimaryService()Experimental-
Bluetooth デバイスが提供している指定の
BluetoothServiceUUIDに対応するプライマリーBluetoothRemoteGATTServiceで解決するプロミスを返します。 BluetoothRemoteGATTServer.getPrimaryServices()Experimental-
Bluetooth デバイスが提供している指定の
BluetoothServiceUUIDに対応するプライマリーBluetoothRemoteGATTServiceオブジェクトのリストで解決するプロミスを返します。
仕様書
| Specification |
|---|
| Web Bluetooth> # bluetoothgattremoteserver-interface> |
ブラウザーの互換性
Loading…