beautypg.com

Sdpqueryprofile, Sdprequestservicesearch, Sdpqueryprofile sdprequestservicesearch – Teledyne LeCroy BTTracer_Trainer - BTTrainer Users Manual User Manual

Page 283

background image

265

CATC BTT

RAINER

2.11

C

HAPTER

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

1

1-3

ServiceID

Service IDs to

search

Hex