mstOnCharaWriteComplete
Start from API_LEVEL
3.0. Please refer to API_LEVEL.
Register the Write Characteristic data completion callback function.
Type
function mstOnCharaWriteComplete(callback: Callback): Result
Parameters
Callback
| Type | Description |
|---|---|
(profile: Profile, uuid: UUID, status: Status) => void | Write Characteristic Data Completion Callback Function |
Profile
| Type | Description |
|---|---|
number | Profile pointer |
UUID
| Type | Description |
|---|---|
string | Characteristic UUID string |
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 { mstOnCharaWriteComplete } from '@zos/ble'
// ...