User Manual

Table Of Contents
233
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
RFAdvanceCredit()
RFAdvanceCredit(Address, DLCI, credit)
Return value
“Success”
“Failure”
“Not Connected”
Comments
Advances a specified number of credits to a particular RFCOMM connec-
tion.
Example
result = RFOpenClientChannel(Device, 1);
DLCI = result[1];
if(result[0] == "Success")
{
status = RFAdvanceCredit(Device, DLCI, 2);
Trace("RFAdvanceCredit returned: ", status, "\n\n");
}
C.7 TCS Commands
TCSRegisterProfile()
TCSRegisterProfile()
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device
Can use “CONNECTED_DEVICE” to advance
a credit to a master RFCOMM connection. 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()
credit Number of
credits to
advance
Parameter Meaning Default Value Comments
N/A