C.6 rfcomm commands, Rfcloseclientchannel(), Rfcomm commands – Teledyne LeCroy Merlins Wand - Users Manual User Manual
Page 236
220
CATC M
ERLIN
’
S
W
AND
2.00
C
HAPTER
C
User’s Manual
Merlin’s Wand Scripting Commands
Comments
Sets the OBEX root directory on a server. This path is accessed by clients
during remote ClientGet and ClientPut operations. The device must
be initialized as a server before the command can be successfully executed.
In the path, be sure to use double-slashes to separate components (e.g.,
“C:\\temp\\temp2”). Using single slashes will cause errors.
Example
status = OBEXServerInit();
if ( status == "Success" )
{
status = OBEXServerSetPath("c:\\temp");
}
Trace("OBEXServerSetPath returned: ", status, "\n\n");
C.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);
Parameter
Meaning
Default Value
Comments
Address
Bluetooth
address of
device
DLCI
Data link con-
nection identi-
fier
The DLCI is returned by RFOpenClientChan-
nel()