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

Page 256

Advertising
background image

240

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

Return value

Returns a list with three values: result, ACL Handle, and a list of all L2CAP
CIDs.

Result (element 0) is one of the following:

“Success”

“Failure”

“Not found”

“Not connected”

ACL Handle (element 1) is a unique identifier for an ACL connection.

List of all L2CAP CIDs (element 2) is a list of all channel identifiers for an
L2CAP connection with a particular device.

Comments

This command is used to establish an L2CAP channel to the specified
remote device.

Example

result = L2CAPConnectRequest('0080370DBD02', 0x1001,

0x1C2);

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

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

{

Handle = result[1];

CID = result[2];

}

L2CAPConnectResponse()

L2CAPConnectResponse(Response)

Return value

“Success”

“Failure”

Parameter

Meaning

Default Value

Comments

Response

“Accept”

Possible values:
“Accept”
“Reject_Pending”
“Reject_PSM_Not_Supported”
“Reject_Security_Block”
“Reject_No_Resources”

Advertising