Skip to main content
Version: v3

mstOnPrepare

Start from API_LEVEL 3.0 . Please refer to API_LEVEL.

Register the prepare operation callback function.

Type

function mstOnPrepare(callback: Callback): Result

Parameters

Callback

TypeDescription
(profile: Profile, status: Status) => voidListening to the prepare event callback function

Profile

TypeDescription
numberProfile pointer

Status

TypeDescription
numberStatus, 0 indicates success

Result

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

Example

import { mstOnPrepare } from '@zos/ble'

// ...