L2capdisconnectrequest(), L2capechorequest, L2capdisconnectrequest() l2capechorequest – Teledyne LeCroy BTTracer_Trainer - BTTrainer Users Manual User Manual
Page 274

256
CATC BTT
RAINER
2.11
C
HAPTER
User’s Manual
L2CAPDisconnectRequest()
L2CAPDisconnectRequest(CID)
Return value
•
“Success”
•
“Failure”
•
“Not connected”
Comments
This command is used to disconnect specified L2CAP channel
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).
Parameter
Meaning
Default Value
Comments
CID
L2CAP chan-
nel identifier
Parameter
Meaning
Default Value
Comments
Address
Bluetooth
address of the
remote device
Data