It looks to me like OCDeviceEntityHandler should really be called
OCDefaultResourceEntityHandler. Is that correct? Internally it's stored as
defaultDeviceHandler. But
in resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp it
does essentially the same thing the OCEntityHandler does, namely forwards
GETs to ProcessGetRequest, etc. So a request for any resource will be
treated as a request for the (default) light resource?

Is that right?  It seems to me that if my server receives a request for
e.g. reading a resource it does not house it should respond with some kind
of error message rather than respond with a reading the client did not ask
for.

I wonder if I'm misunderstanding the thinking behind OCDeviceEntityHandler.

Thanks,

Gregg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160617/318b6c01/attachment.html>

Reply via email to