Version: Smart Feature Phone 2.5Version: Smart Feature Phone 2.6

BluetoothAdapter.pair

Description#

The pair method is used to start pairing a remote device with the device's adapter.

Syntax#

var promise = instanceOfBluetoothAdapter.pair(deviceAddress);

Parameters#

  • deviceAddress A DOMString object representing the address of the device to pair with.

Return value#

A Promise to indicate whether the operation is resolved or rejected. Note event handler ondevicepaired would be triggered before the Promise is resolved.