Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. BluetoothDevice

BluetoothDevice

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.

The BluetoothDevice interface of theWeb Bluetooth API represents a Bluetooth device inside a particular script executionenvironment.

EventTarget BluetoothDevice

Instance properties

BluetoothDevice.idExperimentalRead only

A string that uniquely identifies a device.

BluetoothDevice.nameExperimentalRead only

A string that provides a human-readable name for the device.

BluetoothDevice.gattExperimentalRead only

A reference to the device'sBluetoothRemoteGATTServer.

Instance methods

BluetoothDevice.watchAdvertisements()Experimental

APromise that resolves toundefined or is rejected withan error if advertisements can't be shown for any reason.

BluetoothDevice.forget()Experimental

Provides a way for the page to revoke access to a device the user has granted access to.

Events

Listen to these events usingaddEventListener() or by assigning an event listener to theoneventname property of this interface.

gattserverdisconnectedExperimental

Fired on a device when an active GATT connection is lost.

Specifications

Specification
Web Bluetooth
# bluetoothdevice-interface

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp