You Are Here:

Community: Developer Discussion Boards

#1 Old how to request application UID from remote device - 2003-11-12, 15:35

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


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


I'm interested in quickly identifying a suitable service by checking the remote application's UID (which is responsible for that service). I am using the same application on both end devices.

How may i do this? Is this common practice?

As far as i've read i don't think the application UID is associated with the SDP database ...right?


Thanks..

- aDvo -
Reply With Quote

#2 Old 2003-11-13, 16:05

Join Date: Mar 2003
Posts: 1,200
seppo_fn's Avatar
seppo_fn
Offline
Forum Nokia Expert
In BluetoothAdvertiser coding example the application UID is set as a ServiceID. See btadvertiserappview.cpp:

-----CLIP-----------
// UID for application
static const TInt KUidBTAdvertiserAppValue = {0x10005B8C};
...

// Add a Unique ID to the record
iSdpDatabase.UpdateAttributeL(iRecord,
KSdpAttrIdServiceID,
KUidBTAdvertiserAppValue);
----END---------------

The ServiceID could be requested by a remote device using AttributeRequestL() function (defined in CSdpAgent class in btsdp.h).

Seppo
Forum Nokia
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