User Manual

Table Of Contents
229
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
Return value
“Success”
“Failure”
“Not connected”
“Timed Out”
Comments
Submits a request to change the port settings on a particular RFCOMM
connection.
Example
result = RFOpenClientChannel(Device, 1);
DLCI = result[1];
if(result[0] == "Success")
{
status = RFRequestPortSettings("CONNECTED_DEVICE", DLCI,
"57600", ["RF_DATA_BITS_8"], ["RF_FLOW_CTRL_NONE"], 11,
13);
Trace("RFRequestPortSettings returned: ", status,
"\n\n");
}
RFRequestPortStatus()
RFRequestPortStatus(Address, DLCI)
Return value
Returns a list with two values: status and portSettings.
Status (element 0) is one of the following:
“Success”
“Failure”
“Not Connected”
“Timed Out”
portSettings (element 1) is a list containing the following five values:
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device
Can use “CONNECTED_DEVICE” to request
the port status on a master RFCOMM connec-
tion. Note that this will work only if exactly one
device is connected via RFCOMM.
DLCI Data link con-
nection identi-
fier
The DLCI is returned by RFOpenClientChan-
nel()