L2capsenddata(), L2capsenddatafrompipe(), L2capsenddata() l2capsenddatafrompipe() – Teledyne LeCroy Merlins Wand - Users Manual User Manual

Page 261

Advertising
background image

245

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

L2CAPSendData()

L2CAPSendData(ChannelID, Data)

Return value

“Success”

“Timed out”

“Not supported” (invalid data type)

“Not connected”

Comments

An L2CAP connection must already be established with the device.

Example

result = L2CAPSendData(0x40, "test data");

Trace("Result : ", result, "\n");

L2CAPSendDataFromPipe()

L2CAPSendDataFromPipe(ChannelID, PipeName)

Return value

“Success”

“Timed out”

“Not supported” (invalid data type)

“Not connected”

“Pipe not found”

Parameter

Meaning

Default Value

Comments

ChannelID

L2CAP Chan-

nelID to send

data to

Data

Data to send

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

Parameter

Meaning

Default Value

Comments

ChannelID

L2CAP Chan-

nelID to send

data to

PipeName

Name of the

transmit data

pipe to get

data to send

This pipe must exist.

Advertising