User Manual

Table Of Contents
248
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
Comments
Clears all records out of the Merlin’s Wand SDP profile database.
Example
SDPResetDatabase();
SDPAddServiceRecord()
SDPAddServiceRecord(FileName, RecordName, ServerChannel)
Return value
“Success”
“Failure”
“Failure: Could not load file”
“Failure: Record not found”
“Failure: Could not set RFCOMM server channel X”
Comments
If a server channel is specified, tries to set the RFCOMM server channel. If
it succeeds, then it parses the file specified by FileName and tries to add the
record specified by RecordName.
Example
status = SDPAddServiceRecord("C:\Records.sdp", "FTP Test
Record", 1);
Trace("SDPAddServiceRecord returned: ", status, "\n\n");
Parameter Meaning Default Value Comments
FileName String contain-
ing the full
path of the file
that contains
the record
RecordName String contain-
ing the name
of the service
record to be
added
ServerChannel RFCOMM
server channel
0 If you don't want to change the RFCOMM
Server ID, set this value to 0 (or leave it blank)