mstWriteCharacteristic
API_LEVEL
3.0
开始支持,API 兼容性请参考 API_LEVEL。
写 Characteristic 信息。
类型
function mstWriteCharacteristic(profile: Profile, uuid: UUID, data: Data, length: Length): void
参数
Profile
类型 | 说明 |
---|---|
number | Profile 指针 |
UUID
类型 | 说明 |
---|---|
string | Characteristic UUID 字符串 |
Data
类型 | 说明 |
---|---|
ArrayBuffer | 读取到的数据,使用 Uint8Array 视图读取 |
Length
类型 | 说明 |
---|---|
number | 数据长度 |
代码示例
import { mstWriteCharacteristic } from '@zos/ble'
// ...