Skip to main content
Version: v3

mstOnCharaReadComplete

Start from API_LEVEL 3.0 . Please refer to API_LEVEL.

Register the read Characteristic completion callback function.

Type

function mstOnCharaReadComplete(callback: Callback): Result

Parameters

Callback

TypeDescription
(profile: Profile, uuid: UUID, status: Status) => voidRead Characteristic Completion Callback Function

Profile

TypeDescription
numberProfile pointer

UUID

TypeDescription
stringCharacteristic UUID string

Status

TypeDescription
numberStatus, 0 indicates success

Result

TypeDescription
booleanThe result of the function call, true means success, false means failure

Example

import { mstOnCharaReadComplete } from '@zos/ble'

// ...