Users Manual Instruction Manual

256
CATC BTTRAINER 2.11 CHAPTER
Users 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