Firefox Tomorrow

web api interface

BluetoothDevice

View on MDN ↗

Limited availabilitySecure context

The BluetoothDevice interface of the Web Bluetooth API represents a Bluetooth device inside a particular script execution environment.

Instance properties

  • id Experimental Read only
    • : A string that uniquely identifies a device.
  • name Experimental Read only
    • : A string that provides a human-readable name for the device.
  • gatt Experimental Read only

Instance methods

  • watchAdvertisements() Experimental
    • : A Promise that resolves to undefined or is rejected with an error if advertisements can’t be shown for any reason.
  • 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 using addEventListener() or by assigning an event listener to the oneventname property of this interface.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.