beautypg.com

1 ibtdevice::getaddress, Ibtdevice::getaddress – Teledyne LeCroy Automation API for Bluetooth Analyzers User Manual

Page 80

background image

74

Automation API for CATC Bluetooth Analyzers

CATC

Ver. 1.40

2.8.1 IBTDevice::GetAddress

Retrieves the address of device

Parameters

address

-

device address (12 hex digits)

Return values

Remarks

Example

WSH:

CurrentDir = Left(WScript.ScriptFullName, InstrRev(WScript.ScriptFullName,

"\"))

Set Analyzer = WScript.CreateObject("CATC.Merlin")

Set Neighborhood = Analyzer.GetBTNeighborhood

MsgBox "Number of devices:" & Neighborhood.Count

For Each Device In Neighborhood

MsgBox "Address:" & Device.GetAddress &

" Clock:" & Device.GetClockHz & "Hz" &

" Class:" & Device.GetCoD

Next

Next

C++:

HRESULT GetAddress (

[out, retval] BSTR* address );