mstGetConnIdByRemoteAddr
Start from API_LEVEL
3.0
. Please refer to API_LEVEL.
Look up the connection Id based on the Peripheral MAC address.
Type
function mstGetConnIdByRemoteAddr(deviceAddress: DeviceAddress): Result
Parameters
DeviceAddress
Type | Description |
---|---|
ArrayBuffer | Device MAC address, 6 bytes long, Uint8Array view recommended |
Result
Type | Description |
---|---|
number|undefined | The result of the function call returns connectId for a successful query and undefined for a failed query. |
Example
import { mstGetConnIdByRemoteAddr } from '@zos/ble'
// ...