L2capsenddata – Teledyne LeCroy BTTracer_Trainer - BTTrainer Users Manual User Manual
Page 278

260
CATC BTT
RAINER
2.11
C
HAPTER
User’s Manual
Return value
•
“Success”
•
“Failure”
•
“In use”
Comments
This command is used to register a PSM identifier with L2CAP.
Example
Trace("Register PSM\n");
result = L2CAPRegisterPsm(0x1001, 0x1C2);
Trace(" Result : ", result, "\n");
L2CAPSendData
L2CAPSendData(ChannelID, Data)
Return value
•
“Success”
•
“Timed out”
•
“Not supported” (invalid data type)
•
“Not connected”
Comments
An L2CAP connection must already be established with the device.
Example
result = L2CAPSendData(0x40, "test data");
Trace("Result : ", result, "\n");
ReceiveMTU
0x1C2
Incoming MTU size for L2CAP connection with
that PSM
Parameter
Meaning
Default Value
Comments
ChannelID
L2CAP Chan-
nelID to send
data to
Data
Data to send
Data can be a string, 32-bit integer value or a list
containing either or both types
Parameter
Meaning
Default Value
Comments