Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. BluetoothRemoteGATTServer

BluetoothRemoteGATTServer

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.

Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.

TheBluetoothRemoteGATTServer interface of theWeb Bluetooth API represents a GATTServer on a remote device.

Instance properties

BluetoothRemoteGATTServer.connectedRead onlyExperimental

A boolean value that returns true while this script execution environment isconnected tothis.device. It can be false while the user agent isphysically connected.

BluetoothRemoteGATTServer.deviceRead onlyExperimental

A reference to theBluetoothDevice running the server.

Instance methods

BluetoothRemoteGATTServer.connect()Experimental

Causes the script execution environment to connect tothis.device.

BluetoothRemoteGATTServer.disconnect()Experimental

Causes the script execution environment to disconnect fromthis.device.

BluetoothRemoteGATTServer.getPrimaryService()Experimental

Returns a promise to the primaryBluetoothRemoteGATTService offered by theBluetooth device for a specifiedBluetoothServiceUUID.

BluetoothRemoteGATTServer.getPrimaryServices()Experimental

Returns a promise to a list of primaryBluetoothRemoteGATTService objectsoffered by the Bluetooth device for a specifiedBluetoothServiceUUID.

Specifications

Specification
Web Bluetooth
# bluetoothgattremoteserver-interface

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp