Rfopenclientchannel(), Rfregisterserverchannel(), Rfopenclientchannel() rfregisterserverchannel() – Teledyne LeCroy Merlins Wand - Users Manual User Manual

Page 237

Advertising
background image

221

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

RFOpenClientChannel()

RFOpenClientChannel(Address, ServerID)

Return value

The return value from RFOpenClientChannel is a list containing up to two
elements. The first element is the status of the command and is one of the
following strings:

“Success”

“Failure”

“Timed out”

“Not connected”

“Restricted”

If the return value is “Success”, the second element in the list is the DLCI
of the established connection.

Comments

An ACL connection must already be established with the device.

Example

result = RFOpenClientChannel(Devices[0], 1);

if(result[0] == "Success")

{

Trace("Successfully connected with DLCI ", result[1],

"\n");

# Send some data over RFCOMM

}

RFRegisterServerChannel()

RFRegisterServerChannel()

Parameter

Meaning

Default Value

Comments

Address

Bluetooth

address of

device

ServerID

Service ID for

RFCOMM

channel

Parameter

Meaning

Default Value

Comments

N/A

Advertising