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

## onBLEConnectStatusChange

> [VERSION] DeviceKit >= 3.0.0

> [PLATFORM] iOS, Android

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

### Description

BLE (thing) connection state change notification event

### Parameters

`(listener: Function)`

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `listener` | `(params: ThingBLEConnectStatusEvent) => void` | Yes | - | Event listener callback function |

### Referenced Types

##### `interface` ThingBLEConnectStatusEvent

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `deviceId` | `string` | `3.0.0` | BLE (Thing) connection status deviceId: device ID |
| `status` | `string` | `3.0.0` | status values  CONNECTED: Connected  CONNECTING: Connecting  CONNECT_BREAK: Connection failed |
