B.10 sdp commands, Sdpaddprofileservicerecord, Sdp commands – Teledyne LeCroy BTTracer_Trainer - BTTrainer Users Manual User Manual
Page 280: B.10sdp commands

262
CATC BTT
RAINER
2.11
C
HAPTER
User’s Manual
Comments
Waits Timeout milliseconds for a device to establish an L2CAP connection
with Merlin's Wand. This function will block the specified amount of time
(or infinitely if 0 is specified) unless a connection is established.
Example
Trace("L2CAPWaitForConnection\n");
result = L2CAPWaitForConnection();
if( result == "Success")
{
#Do something else
}
B.10SDP Commands
SDPAddProfileServiceRecord
SDPAddProfileServiceRecord(ServerChannel, Profile)
Return value
•
“Success”
•
“Failure”
Comments
Adds a profile to BTTrainer SDP database
Example
SDPAddProfileServiceRecord(rfChannel, "ObjectPush");
Parameter
Meaning
Default Value
Comments
Server Channel
RFCOMM
server chan-
nel to accept
incoming con-
nections to
this profile
Use the result from RFRegisterServerChannel()
here
Profile
Name of SDP
profile
Profile can be one of:
“Headset”, “HeadsetAudioGateway”, “Seri-
alPort”, “DialUp”, “FileTransfer”, “Fax”,
“LAN”, “ObjectPush”, “Intercom”, “Cordless”,
“Sync”, “SyncCommand”