Skip to main content
Version: v3+

mstWriteDescriptor

Start from API_LEVEL 3.0 . Please refer to API_LEVEL.

Register the Characteristic notification arrival callback function.

Type​

function mstWriteDescriptor(
profile: Profile,
uuid: UUID,
descUUID: DescUUID,
data: Data,
length: Length,
): Result

Parameters​

Profile​

TypeDescription
numberProfile pointer

UUID​

TypeDescription
stringCharacteristic UUID string

DescUUID​

TypeDescription
stringDescriptor UUID string

Data​

TypeDescription
ArrayBufferReads the data using the Uint8Array view

Length​

TypeDescription
numberData length

Result​

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

Example​

import { mstWriteDescriptor } from '@zos/ble'

// ...