User Manual

Table Of Contents
243
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
Example
result = L2CAPEchoRequest('838010AC0008', "Test");
Trace("L2CAPEchoRequest result : ", result[0], "\n");
if(result[0] == "Success")
{
Trace("Data : ", result[1], "\n");
}
L2CAPInfoRequest()
L2CAPInfoRequest(Address)
Return values
Returns a list with three values: status, number of bytes, and data.
Status (element 0) is one of the following:
“Success”
“Failure”
“Not found”
“Not connected”
Number of bytes (element 1) is the number of bytes of data that follow.
Data (element 2) is the raw data.
Comments
Sends an Info Request to the L2CAP protocol on the specified remote
device. Info requests are used to exchange implementation-specific infor-
mation regarding L2CAP’s capabilities.
Example
result = L2CAPInfoRequest('838010AC0008');
Trace("L2CAPInfoRequest result : ", result[0], "\n");
if(result[0] == "Success")
{
Trace("Data length : ", result[1], "\n");
Trace("Data : ", result[2], "\n");
}
Parameter Meaning Default Value Comments
Address Bluetooth
address of the
remote device