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

Page 258

Advertising
background image

242

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

Example

L2CAPDisconnectRequest(0x0040);

L2CAPEchoRequest()

L2CAPEchoRequest(Address, Data)

Return value

Returns a list with two values: status and data.

Status (element 0) is one of the following:

“Success”

“Failure”

“Not found”

“Not connected”

Data (element 1) is the data returned by the remote device.

Comments

This command sends an Echo Request to the L2CAP protocol on the spec-
ified remote device. The data length should not exceed the default L2CAP
signaling MTU (44 bytes).

Example

result = L2CAPEchoRequest('838010AC0008', "Test");

Trace("L2CAPEchoRequest result : ", result[0], "\n");

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

{

Trace("Data : ", result[1], "\n");

}

Parameter

Meaning

Default Value

Comments

Address

Bluetooth

address of the

remote device

Data

Advertising