Users Manual Instruction Manual
265
CATC BTTRAINER 2.11 CHAPTER
User’s Manual
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);
}
SDPRequestServiceSearch
SDPRequestServiceSearch (Address,ParamsNum,ServiceID)
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
Address Bluetooth
address of
device to
query
ParamsNum Number of
parameters
11-3
ServiceID Service IDs to
search
Hex