User Manual

Table Of Contents
244
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
L2CAPRegisterPsm()
L2CAPRegisterPsm(PSM, ReceiveMTU)
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.
Parameter Meaning Default Value Comments
PSM
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