---
name: "startBLEScanBindDevice"
mode: "kit"
versionRequirements:
  - { name: "DeviceKit", version: "2.1.6" }
platform:
  - "iOS"
  - "Android"
async: true
---

## startBLEScanBindDevice

> [VERSION] DeviceKit >= 2.1.6

> [PLATFORM] iOS, Android

> ⚡ **Supports Promise** — Returns a Promise when success / fail / complete callbacks are omitted.

### Description

Scan for network-provisioned devices within the specified time. Scan results are obtained via the onBLEScanBindDevice event

### Parameters

| Property | Type | Required | Default | Since | Description |
| --- | --- | --- | --- | --- | --- |
| `interval` | `number` | Yes | - | `2.1.6` | Scan interval. If < 0, returns an error |
| `scanType` | `string` | Yes | - | `2.1.6` | [Deprecated] Scanning without type distinction Scan types SINGLE -> "SINGLE" SINGLE_QR -> "SINGLE_QR" MESH -> "MESH" SIG_MESH -> "SIG_MESH" NORMAL -> "NORMAL" Thing_BEACON -> "Thing_BEACON" |
| `complete` | `() => void` | No | - | - | Callback invoked when the API call completes (runs on both success and failure) |
| `success` | `() => void` | No | - | - | Success callback for the API call |
| `fail` | `(params: Object) => void` ↓see below | No | - | - | Failure callback for the API call |

#### fail callback parameters

| Property | Type | Description |
| --- | --- | --- |
| `errorMsg` | `string` | Error message |
| `errorCode` | `string \| number` | Error code |
| `innerError` | `Object` | Error extension |

##### fail(params).innerError properties

| Property | Type | Description |
| --- | --- | --- |
| `errorCode` | `string \| number` | Extended error code |
| `errorMsg` | `string` | Extended error info |
