Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. BluetoothRemoteGATTService

BluetoothRemoteGATTService

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.

TheBluetoothRemoteGATTService interface of theWeb Bluetooth API represents aservice provided by a GATT server, including a device, a list of referenced services,and a list of the characteristics of this service.

EventTarget BluetoothRemoteGATTService

Instance properties

BluetoothRemoteGATTService.deviceRead onlyExperimental

Returns information about a Bluetooth device through an instance ofBluetoothDevice.

BluetoothRemoteGATTService.isPrimaryRead onlyExperimental

Returns a boolean value indicating whether this is a primary or secondaryservice.

BluetoothRemoteGATTService.uuidRead onlyExperimental

Returns a string representing the UUID of this service.

Instance methods

BluetoothRemoteGATTService.getCharacteristic()Experimental

Returns aPromise to an instance ofBluetoothRemoteGATTCharacteristic for a given universally unique identifier(UUID).

BluetoothRemoteGATTService.getCharacteristics()Experimental

Returns aPromise to anArray ofBluetoothRemoteGATTCharacteristic instances for an optional universallyunique identifier (UUID).

Specifications

Specification
Web Bluetooth
# bluetoothgattservice-interface

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp