Sorry I didn't want to obfuscate the problem by providing too specific of 
information:


I want to be able to kick off a gather devices request to a separate process, 
such as gathering the devices list from a hue bridge and registering any new 
lights as resources.


I just need to be able to catch when a discovery request is made to oic/res so 
I can build out the logic.


I've implemented it currently by building a resource "/bridge/oic/res" and then 
adding an entity handler for get requests but this feels like a hacked work 
around.?


Hopefully this clears things up a little,


Ethan?



________________________________
From: Gregg Reynolds <[email protected]>
Sent: Tuesday, April 24, 2018 3:14 PM
To: Wright, Ethan J
Cc: iotivity-dev
Subject: Re: [dev] oic/res entity handler



On Tue, Apr 24, 2018, 4:08 PM Wright, Ethan J 
<[email protected]<mailto:[email protected]>> wrote:

Hi All,


I've been reading through the documentation and have been having trouble 
finding a way to attach an entity handler to the default iotivity server 
interface oic/res.


I'm hoping to expose oic/res so that my server can do extra things when hit 
with a discovery request.

Please be more specific. What exactly are you trying to do, and what exactly is 
the problem you're having? What does "extra things" mean?

Anyone have any clue where I would look to implement this??


Thanks,


Ethan Wright

The contents of this e-mail message and
any attachments are intended solely for the
addressee(s) and may contain confidential
and/or legally privileged information. If you
are not the intended recipient of this message
or if this message has been addressed to you
in error, please immediately alert the sender
by reply e-mail and then delete this message
and any attachments. If you are not the
intended recipient, you are notified that
any use, dissemination, distribution, copying,
or storage of this message or any attachment
is strictly prohibited.
_______________________________________________
iotivity-dev mailing list
[email protected]<mailto:[email protected]>
https://lists.iotivity.org/mailman/listinfo/iotivity-dev
E-MAIL CONFIDENTIALITY NOTICE: 
The contents of this e-mail message and any attachments are intended solely for 
the addressee(s) and may contain confidential and/or legally privileged 
information. If you are not the intended recipient of this message or if this 
message has been addressed to you in error, please immediately alert the sender 
by reply e-mail and then delete this message and any attachments. If you are 
not the intended recipient, you are notified that any use, dissemination, 
distribution, copying, or storage of this message or any attachment is strictly 
prohibited.
_______________________________________________
iotivity-dev mailing list
[email protected]
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to