User Manual

Table Of Contents
247
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
Example
SDPAddProfileServiceRecord(rfChannel, "ObjectPush");
SDPQueryProfile()
SDPQueryProfile(Address, Profile)
Return value
RFCOMM channel of the requested profile (profile is supported)
“Failure”
Comments
Queries the specified device to see if a profile is supported.
An ACL connection must already be established with the device.
Example
if((RFCommId = SDPQueryProfile(Devices[0], "SerialPort"))
!= "Failure")
{
RFOpenClientChannel(Devices[0], RFCommId);
}
SDPResetDatabase()
SDPResetDatabase()
Return value
“Success”
“Failure”
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device to
query
Profile Name of SDP
profile
Profile can be one of:
“Headset”, “HeadsetAudioGateway”, “Seri-
alPort”, “DialUp”, “FileTransfer”, “ObjectPush”,
“Intercom”, “Cordless”, “Fax”, “LAN”, “Sync”
or “SyncCommand”
Parameter Meaning Default Value Comments
N/A