Users Manual Instruction Manual

227
CATC BTTRAINER 2.11 CHAPTER
Users Manual
“Success”
“Failure”
“Timed out”
“Not connected”
•“Restricted
If the return value is “Success”, the second element in the list is the DLCI
of the established connection.
Comments
An ACL connection must already be established with the device.
Example
result = RFOpenClientChannel(Devices[0], 1);
if(result[0] == "Success")
{
Trace("Successfully connected with DLCI ", result[1],
"\n");
# Send some data over RFCOMM
}
RFRegisterServerChannel
RFRegisterServerChannel()
Return value
Server channel ID
“Failure”
Comments
Example
channel = RFRegisterServerChannel();
if(channel != "Failure")
{
Trace("Channel ID is ", channel);
}
Parameter Meaning Default Value Comments
N/A