Skip to main content
Version: v3+

mstGetProfileInstance

Start from API_LEVEL 3.0 . Please refer to API_LEVEL.

Query Profile pointer based on Profile name and connection ID.

Type​

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

Parameters​

ProfileName​

TypeDescription
stringProfile name

ConnectId​

TypeDescription
numberThe ID returned on a successful connection

Result​

TypeDescription
number|undefinedA successful search returns the Profile pointer, a failed search returns undefined

Example​

import { mstGetProfileInstance } from '@zos/ble'

// ...