Users Manual Instruction Manual

238
CATC BTTRAINER 2.11 CHAPTER
Users Manual
Return value
“Success”
“Failure”
“Not Connected”
•“Timed Out
Comments
Sets the line status on a particular RFCOMM connection.
Example
result = RFOpenClientChannel(Device, 1);
DLCI = result[1];
if(result[0] == "Success")
{
status = RFSetLineStatus("CONNECTED_DEVICE", DLCI,
["RF_LINE_ERROR", "RF_FRAMING"]);
Trace("RFSetLineStatus returned: ", status, "\n\n");
}
RFSetCreditFlowControlEnable
RFSetCreditFlowControlEnable(enable);
Return value
Always returns "Success"
Comments
By default BTTrainer uses RFCOMM Credit Flow Control.
If enable = 0- Credit Flow Control will be disabled for all new RFCOMM
channels opened by RFRegisterServerChannel() and RFOpenClientChan-
nel() commands (device will work as 1.0B complient device).
If enable != 0- Credit Flow Control will be enabled for all new RFCOMM
channels opened by RFRegisterServerChannel() and RFOpenClientChan-
nel() commands (device will work as 1.1 complient device).
Example
Parameter Meaning Default Value Comments
enable Flag for enabling
and disabling the
Credit Flow Control
BNEP connection has to be present.