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
| Type | Description |
|---|---|
number | Profile pointer |
UUID
| Type | Description |
|---|---|
string | Characteristic UUID string |
DescUUID
| Type | Description |
|---|---|
string | Descriptor UUID string |
Data
| Type | Description |
|---|---|
ArrayBuffer | Reads the data using the Uint8Array view |
Length
| Type | Description |
|---|---|
number | Data length |
Result
| Type | Description |
|---|---|
boolean | The result of the function call, true means success, false means failure |
Example
import { mstOnCharaNotification } from '@zos/ble'
// ...