L2capconnectrequest – Teledyne LeCroy BTTracer_Trainer - BTTrainer Users Manual User Manual
Page 272

254
CATC BTT
RAINER
2.11
C
HAPTER
User’s Manual
Example
L2CAPConfigurationResponse("Reject-unknown options");
L2CAPConnectRequest
L2CAPConnectRequest(Address, PSM, ReceiveMTU)
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];
}
Parameter
Meaning
Default Value
Comments
Address
Bluetooth
address of the
remote device
PSM
ReceiveMTU
0x01C2