Sdpaddservicerecord, Sdpgenericquery, Sdpaddservicerecord sdpgenericquery – Teledyne LeCroy BTTracer_Trainer - BTTrainer Users Manual User Manual
Page 281

263
CATC BTT
RAINER
2.11
C
HAPTER
User’s Manual
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");
SDPGenericQuery
SDPGenericQuery(Address,PduID, size, data_to_send)
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)
Parameter
Meaning
Default Value
Comments
Address
Bluetooth
address of
device to
query