0

How to get all unique name in Bus

asked 2014-06-17 03:48:14 -0700

congngale gravatar image

updated 2014-07-18 16:18:14 -0700

Nikhil Dabhade gravatar image

Dear all,

I want to get all unique name available in BUS, i already google it and find function ListNames() in ProxyBusObject can return what i need. But it's not working now. Anyone can show me new function in Alljoyn same with this. Thanks

edit retag flag offensive close merge delete

Comments

Can you clarify that for uniqueName you are asking about listing all of the ":XYZABCE123.#" values? Why you need the uniqueNames? And, what language binding are you using?

bspencer ( 2014-06-20 16:24:49 -0700 )edit

Thank bspenter, Yes, the uniqueName is listing all of the ":XYZABCE123.#". I want to get all unique name to know how many application is available now. I'm using C++ language.

congngale ( 2014-07-16 01:10:03 -0700 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-07-16 11:37:38 -0700

bspencer gravatar image

updated 2014-07-16 11:40:41 -0700

Just knowing how many applications around you is not meaningful other than knowing that there are X AllJoyn applications. Which is why using ListNames would not be a recommendation I would endorse. What you want to use is the About feature for Service Level Discovery then when you find a device/application you understand the interfaces that you can connect with.

If you want to understand just your application then advertise a Well-Known Name and use the BusListener::FoundAdvertiseName to BusAttachment::FindAdvertisedName with the prefix of the Well-Known Name.

edit flag offensive delete publish link more

Comments

I'm using 2 functions are BusListener::FoundAdvertiseName and BusAttachment::FindAdvertisedName as i mentioned (The Buslistener is object that I use to listen when an advertisename was found or lost). I like to use those functions more than use About Feature. Thank you.

congngale ( 2014-07-16 23:17:28 -0700 )edit
0

answered 2014-07-16 01:14:52 -0700

congngale gravatar image

Finally, I used Buslistener to listen when an application advertises and shutdown itself to get a list of applications available. I think Alljoyn already removed function ListNames() in version 14.02 and 14.06. Anyways, Thank you.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-06-17 03:48:14 -0700

Seen: 203 times

Last updated: Jul 16 '14