Users Manual Instruction Manual
225
CATC BTTRAINER 2.11 CHAPTER
User’s Manual
• “Failure”
Comments
Initializes an OBEX server.
Example
result = OBEXServerInit();
OBEXServerSetPath(Path)
OBEXServerSetPath(Path)
Return value
• “Success”
• “Failure”
• “Failed: Device must be initialized as a server”
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");
Parameter Meaning Default Value Comments
Path Path to be
used as the
OBEX root
directory on
the server
Path must be fully specified (e.g., “C:\\temp”
rather than “temp”)