web api interface
BluetoothRemoteGATTServer
Limited availabilitySecure context
The BluetoothRemoteGATTServer interface of the Web Bluetooth API represents a GATT
Server on a remote device.
Instance properties
connectedRead only Experimental- : A boolean value that returns true while this script execution environment is
connected to
this.device. It can be false while the user agent is physically connected.
- : A boolean value that returns true while this script execution environment is
connected to
deviceRead only Experimental- : A reference to the
BluetoothDevicerunning the server.
- : A reference to the
Instance methods
connect()Experimental- : Causes the script execution environment to connect to
this.device.
- : Causes the script execution environment to connect to
disconnect()Experimental- : Causes the script execution environment to disconnect from
this.device.
- : Causes the script execution environment to disconnect from
getPrimaryService()Experimental- : Returns a promise to the primary
BluetoothRemoteGATTServiceoffered by the Bluetooth device for a specifiedBluetoothServiceUUID.
- : Returns a promise to the primary
getPrimaryServices()Experimental- : Returns a promise to a list of primary
BluetoothRemoteGATTServiceobjects offered by the Bluetooth device for a specifiedBluetoothServiceUUID.
- : Returns a promise to a list of primary
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.