Skip to main content
Version: v3+

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​

TypeDescription
ArrayBufferDevice MAC address, 6 bytes long, Uint8Array view recommended

Result​

TypeDescription
number|undefinedThe result of the function call returns connectId for a successful query and undefined for a failed query.

Example​

import { mstGetConnIdByRemoteAddr } from '@zos/ble'

// ...