---
name: "onBLETransparentDataReport"
mode: "kit"
versionRequirements:
  - { name: "DeviceKit", version: "3.0.0" }
  - { name: "@ray-js/ray", version: "0.6.23" }
platform:
  - "iOS"
  - "Android"
async: true
title: "onBLETransparentDataReport - BLE(thing)设备数据透传通道上报通知"
---

## onBLETransparentDataReport

> [VERSION] DeviceKit >= 3.0.0 | @ray-js/ray >= 0.6.23

> [PLATFORM] iOS, Android

> ⚡ **支持 Promise 调用** — 不传 success / fail / complete 回调时，该方法返回 Promise。

### 描述

BLE(thing)设备数据透传通道上报通知

### 参数

`(listener: Function)`

| 参数 | 类型 | 必填 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| `listener` | `(params: ThingBLETransparentDataBean) => void` | 是 | - |  |

### 引用对象

##### `interface` ThingBLETransparentDataBean

| 属性 | 类型 | 最低版本 | 描述 |
| --- | --- | --- | --- |
| `deviceId` | `string` | `3.0.0` | 蓝牙透传数据 deviceId: 设备 id |
| `data` | `string` | `3.0.0` | data: 透传内容 |


### 示例代码

#### 基础调用

```tsx
import { device } from '@ray-js/ray'

const { onBLETransparentDataReport } = device;

onBLETransparentDataReport((res) => {
  console.log('onBLETransparentDataReport', res);
});
```
