You Are Here:

Community: Developer Discussion Boards

#1 Old laa-laa pls help! - 2003-11-10, 14:32

Join Date: Jun 2003
Posts: 318
advocatee
Offline
Regular Contributor
Hi laa-laa

Can u help me with the coding? I keep getting errors.

I wish to get the service name or description, and check it to see if it is the desired name (desired service). I hope that just doing a simple string comparison is enough to check if the service name is one which i'm looking for, but whatever i code it doesn't work. I'm not sure how to code the the AttributeRequestResult part of it. Suppose im looking for the service name "F2F".

Im asking this because the BTP2P example shows a very confusing parsing method for the protocol descriptor list attr which it requests from the remote device, which i don't understand. I'm hoping there is asimpler method for other attributes.


void CBTServiceSearcher::NextRecordRequestCompleteL(
TInt aError,
TSdpServRecordHandle aHandle,
TInt aTotalRecordsCount
)
{
//......etcetc......
CSdpAttrIdMatchList* matchList = CSdpAttrIdMatchList::NewL();
CleanupStack::PushL(matchList);
matchList->AddL(KSdpAttrIdBasePrimaryLanguage+KSdpAttrIdOffsetServiceName);
CleanupStack::PopAndDestroy();
iAgent->AttributeRequestL(aHandle, *matchList);


}

void CBTServiceSearcher::AttributeRequestResult(
TSdpServRecordHandle aHandle,
TSdpAttributeID aAttrID,
CSdpAttrValue* aAttrValue
)

{

// ?????

}



pls help!

- aDvo -
Reply With Quote

#2 Old 2003-11-11, 12:09

Join Date: Aug 2003
Posts: 1,005
Location: Oulu, Finland
laa-laa's Avatar
laa-laa
Offline
Forum Nokia Champion
Sorry. I haven't worked with Bluetooth SDP on Symbian, and I don't want to dig into it now. I have enough problems already (that I get paid to solve).

Generally, you should not trust on names which are not unique. Use the identifier numbers. See bluetooth.org for assigned numbers.

Lauri
Reply With Quote

#3 Old identifier numbers - 2003-11-11, 17:23

Join Date: Jun 2003
Posts: 318
advocatee
Offline
Regular Contributor
Thanks laa laa

Are you refering to the application UID?

Does anyone know how i may request the UID of an application advertising a service from a remote device?

As far as i've read i don't think the application UID is associated with the SDP database ...right?
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia