Users Manual Instruction Manual

226
CATC BTTRAINER 2.11 CHAPTER
Users Manual
B.6 RFCOMM Commands
RFCloseClientChannel
RFCloseClientChannel(Address, DLCI)
Return value
“Success”
“Not connected”
“Failure”
“Timed out”
Comments
Closes an RFCOMM channel
Example
RFCloseClientChannel(Devices[0], DLCI);
RFOpenClientChannel
RFOpenClientChannel(Address, ServerID)
Return value
The return value from RFOpenClientChannel is a list containing up to two
elements. The first element is the status of the command and is one of the
following strings:
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device
DLCI Data link con-
nection identi-
fier
The DLCI is returned by RFOpenClientChan-
nel()
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device
ServerID Service ID for
RFCOMM
channel