MDN Web Docs

Instance properties

BluetoothRemoteGATTService.device Read only

Returns information about a Bluetooth device through an instance of BluetoothDevice.

BluetoothRemoteGATTService.isPrimary Read only

Returns a boolean value indicating whether this is a primary or secondary service.

BluetoothRemoteGATTService.uuid Read only

Returns a string representing the UUID of this service.

Instance methods

BluetoothRemoteGATTService.getCharacteristic()

Returns a Promise to an instance of BluetoothRemoteGATTCharacteristic for a given universally unique identifier (UUID).

BluetoothRemoteGATTService.getCharacteristics()

Returns a Promise to an Array of BluetoothRemoteGATTCharacteristic instances for an optional universally unique identifier (UUID).

Specifications

Specification
Web Bluetooth
# bluetoothgattservice-interface

Browser compatibility

Help improve MDN

Yes No

Learn how to contribute

This page was last modified on by MDN contributors.

Read the original on developer.mozilla.org ↗