Rfsenddata() – Teledyne LeCroy Merlins Wand - Users Manual User Manual

Page 238

Advertising
background image

222

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

Return value

Server channel ID

“Failure”

Comments

Example

channel = RFRegisterServerChannel();

if(channel != "Failure")

{

Trace("Channel ID is ", channel);

}

RFSendData()

RFSendData(Address, DLCI, Data)

Return value

“Success”

“Timed out”

“Not supported” (invalid data type)

“Not connected”

Comments

An RFCOMM connection must already be established with the device.

Example

RFSendData(Devices[0], DLCI, "ATDT 555-1212");

RFSendData("CONNECTED_DEVICE", dlci, "AT+CKPD=200\r\n");

Parameter

Meaning

Default Value

Comments

Address

Bluetooth

address of

device

Can use “CONNECTED_DEVICE” to send data
to a master RFCOMM connection. Note that this
will work only if exactly one device is connected
via RFCOMM.

DLCI

Data link con-

nection identi-

fier

The DLCI is returned by RFOpenClientChan-
nel()

Data

Data to send

Data can be a string, 32-bit integer value or a list
containing either or both types

Advertising