mstOnCharaValueArrived
Start from API_LEVEL
3.0
. Please refer to API_LEVEL.
Register to read Characteristic data to the callback function.
Type
function mstOnCharaValueArrived(callback: Callback): Result
Parameters
Callback
Type | Description |
---|---|
(profile: Profile, uuid: UUID, data: Data, status: Status) => void | Read Characteristic data to the callback function |
Profile
Type | Description |
---|---|
number | Profile pointer |
UUID
Type | Description |
---|---|
string | Characteristic UUID string |
Data
Type | Description |
---|---|
ArrayBuffer | Reads the data using the Uint8Array view |
Status
Type | Description |
---|---|
number | Status, 0 indicates success |
Result
Type | Description |
---|---|
boolean | The result of the function call, true means success, false means failure |
Example
import { mstOnCharaValueArrived } from '@zos/ble'
// ...