---
name: "onBLEBigDataChannelDeviceToAppSuccess"
mode: "kit"
versionRequirements:
  - { name: "DeviceKit", version: "2.3.1" }
  - { name: "@ray-js/ray", version: "0.6.23" }
platform:
  - "iOS"
  - "Android"
async: true
title: "onBLEBigDataChannelDeviceToAppSuccess - 大数据从设备传输到 App 成功的事件"
---

## onBLEBigDataChannelDeviceToAppSuccess

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

> [PLATFORM] iOS, Android

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

### 描述

大数据从设备传输到App成功的事件

### 参数

`(listener: Function)`

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

### 引用对象

##### `interface` BLEBigDataChannelDeviceToAppSuccessResponse

| 属性 | 类型 | 最低版本 | 描述 |
| --- | --- | --- | --- |
| `data` | `BLEBigDataChannelData[]` | `2.3.1` | data |

##### `type` BLEBigDataChannelData

| 属性 | 类型 | 最低版本 | 描述 |
| --- | --- | --- | --- |
| `dpsTime` | `string` | `2.3.1` | dpsTime |
| `dps` | `Record<string, Record<string, any>>` | `2.3.1` | dps |


### 示例代码

#### 基础调用

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

const { onBLEBigDataChannelDeviceToAppSuccess } = device;

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