User Manual

Table Of Contents
226
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
RFCOMM connection is already present when this function is called, it
will immediately return “Success”.
Example
# Wait 3 seconds for RFCOMM connection
Trace("RFWaitForConnection\n");
result = RFWaitForConnection(1, 3000);
if( result[0] == "Success" )
{
Trace("Incoming RFCOMM connection DLCI: ", result[1],
"\n");
Trace("Connecting device address: ", result[2], "\n");
}
RFAcceptChannel()
RFAcceptChannel(bAccept)
Return value
“Success”
Comments
Example
status = RFAcceptChannel(1);
Trace("RFAcceptChannel returned: ", status, "\n\n");
RFAcceptPortSettings()
RFAcceptPortSettings(bAccept)
Parameter Meaning Default Value Comments
bAccept Boolean value
indicating
whether to
accept the
channel or not
00 or 1
Parameter Meaning Default Value Comments
bAccept Boolean value
indicating
whether to
accept the
channel or not
00 or 1