Version: Smart Feature Phone 3.0

BluetoothAdapter.stopLeScan

Description#

The method makes the device's adapter stop an ongoing scan of remote LE devices.

Syntax#

var promise = instanceOfBluetoothAdapter.stopLeScan(discoveryHandle);

Parameters#

  • discoveryHandle

The BluetoothDiscoveryHandle of the ongoing scan to stop.

Return value#

A Promise to indicate whether the operation is resolved or rejected. If the bluetooth adapter is currently disabled, the Promise would be rejected.