User Manual

Table Of Contents
246
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
Return value
“Success”
“Timed out”
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
}
C.9 SDP Commands
SDPAddProfileServiceRecord()
SDPAddProfileServiceRecord(ServerChannel, Profile)
Return value
“Success”
“Failure”
Comments
Adds a profile to Merlin’s Wand SDP database
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”