Skip to main content
版本:v3.x

mstGetProfileInstance

API_LEVEL 3.0 开始支持,API 兼容性请参考 API_LEVEL

销毁 Profile。

类型

function mstGetProfileInstance(profileName: ProfileName, connectId: ConnectId): Result

参数

ProfileName

类型说明
stringProfile 名称

ConnectId

类型说明
number连接成功时返回的 ID

Result

类型说明
number|undefined查找成功返回 Profile 指针,失败返回 undefined

代码示例

import { mstGetProfileInstance } from '@zos/ble'

// ...