Firefox Tomorrow

web api instance method

Bluetooth: getDevices() method

View on MDN ↗

Limited availabilitySecure context

The getDevices() method of the Bluetooth interface returns an array containing the Bluetooth devices that this origin is allowed to access — including those that are out of range and powered off.

Syntax

getDevices()

Parameters

None.

Return value

A Promise that resolves with an array of BluetoothDevice objects.

Exceptions

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.