Hi, bumping up this thread because this is still a problem for me. Anyone?
On Wed, Jul 13, 2016 at 10:40 AM, Iovene, Salvatore <salvatore.iovene at intel.com> wrote: > Just to expand after some investigation, this is wrong also in C++. > The culprit seems to be the subscribePresenceCallback function in > resource/src/InProcClientWrapper.cpp. > > There's a nice comment there, when setting the url as third argument > to the callback: "This is a hack while we rethink presence > subscription". > > The quickest fix, at least for me, would be to rather use a unique > identifier for the device there. > > > On Wed, Jul 13, 2016 at 10:23 AM, Iovene, Salvatore > <salvatore.iovene at intel.com> wrote: >> Hi, >> I'm developing an Iotivity client using Java, and I want to observe >> the presence status of devices. >> >> So I'm using the `OcPlatform.subscribePresence` API, and passing a >> `OcPlatform.OnPresenceListener` to it. >> >> I have a couple of questions about the `onPresence` method: >> >> 1. What is the `nonce` argument? The API docs don't explain it. >> 2. This method only gives me a `hostAddress`, and that's not enough to >> identify which devices had a presence change, because you can have >> multiple devices on the same network. >> >> Is this an oversight in the Java API? >> >> Thanks in advance! >> Salvatore >> >> >> -- >> Salvatore Iovene <salvatore.iovene at intel.com> >> Linux Software Engineer >> Intel Open Source Technology Center, Finland >> Tel.: +358504804026 > > > > -- > Salvatore Iovene <salvatore.iovene at intel.com> > Linux Software Engineer > Intel Open Source Technology Center, Finland > Tel.: +358504804026 -- Salvatore Iovene <salvatore.iovene at intel.com> Linux Software Engineer Intel Open Source Technology Center, Finland Tel.: +358504804026
