Skip to main content
版本:v3+

mstOnCharaReadComplete

API_LEVEL 3.0 开始支持,API 兼容性请参考 API_LEVEL。

注册读取 Characteristic 完成回调函数。

类型​

function mstOnCharaReadComplete(callback: Callback): Result

参数​

Callback​

类型说明
(profile: Profile, uuid: UUID, status: Status) => void读取 Characteristic 完成回调函数

Profile​

类型说明
numberProfile 指针

UUID​

类型说明
stringCharacteristic UUID 字符串

Status​

类型说明
number状态,0 表示成功

Result​

类型说明
boolean函数调用结果,true 表示成功、false 表示失败

代码示例​

import { mstOnCharaReadComplete } from '@zos/ble'

// ...