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
Type | Description |
---|---|
string | Profile name |
ConnectId
Type | Description |
---|---|
number | The ID returned on a successful connection |
Result
Type | Description |
---|---|
number|undefined | A successful search returns the Profile pointer, a failed search returns undefined |
Example
import { mstGetProfileInstance } from '@zos/ble'
// ...