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

## getBLEDeviceRSSI

> [VERSION] DeviceKit >= 1.2.6

> [PLATFORM] iOS, Android

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

### Description

Get BLE peripheral signal

### Parameters

| Property | Type | Required | Default | Since | Description |
| --- | --- | --- | --- | --- | --- |
| `deviceId` | `string` | Yes | - | `1.2.6` | Device model deviceId Device ID |
| `complete` | `() => void` | No | - | - | Callback when the API call completes (runs on success or failure) |
| `success` | `(params: Object) => void` ↓see below | No | - | - | Callback when the API call succeeds |
| `fail` | `(params: Object) => void` ↓see below | No | - | - | Callback when the API call fails |

#### success callback parameters

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `signal` | `number` | `3.3.0` | Device signal signal If 0, retrieval failed |

#### 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 |
