Skip to main content
Version: v3.x

mstDisconnect

Start from API_LEVEL 3.0 . Please refer to API_LEVEL.

Disconnecting devices.

Type

function mstDisconnect(connectId: ConnectId): Result

Parameters

ConnectId

TypeDescription
numberThe connection ID returned when the connection is successful using the mstConnect API

Result

TypeDescription
booleanThe result of the function call, true means success, false means failure

Example

import { mstDisconnect } from '@zos/ble'

// ...