Hey! <rubber-duck> OC_REST_DISCOVER to destination null and path /oic/ad </rubber-duck>
Thanks, all! Gabriel On Fri, Aug 26, 2016 at 8:16 PM, Schulhof, Gabriel < gabriel.schulhof at intel.com> wrote: > Hi! > > Is there a request I can formulate using OCDoResource() that will get me > notified whenever a device appears on the network? > > I have tried OC_REST_PRESENCE with a null destination, to resource /oic/ad > but that fails. I've tried to fill out the OCDevAddr with all zeros and > that's OC_STACK_OK, but I get nothing when I enable presence on a device. > > Is observing /oic/ad on a previously discovered device really the only way > to get notified of the appearance/disappearance of a device? Notice that > that'll only make me aware of disappearance, because the device will almost > certainly appear at a different address, and it won't remember that I was > observing its /oic/ad. > > IIUC the spec says that there's supposed to be a "local" resource which I > can observe in order to be notified of any and all device > appearance/disappearance requests. Has that been implemented? > > TIA for your help and advice, > > > > Gabriel > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160826/ab684339/attachment.html>
