Hi everyone,
I managed to rewrite the 'Philips Hue' plugin for Android and also to write a
plugin for 'Nest Thermostat'. I tried to improve Hue's functionality by adding
collection and group resources in order to have a better control on light
configurations. The problem I'm facing is related to the default entity
handler: I wanted to keep it simple and register the collection resource with a
NULL entity handler (like the room server example), but I get this
'entityHandler cannot be null INVALID_PARAM' exception. I must mention that
this only happens for Android.
I had a look in ocstack.c and there is a piece of code that deals with this: if
(entityHandler) { pointer->entityHandler = entityHandler; ... } else {
pointer->entityHandler = defaultResourceHandler; ... }.
Any idea on how this could be solved? Is the android native implementation
missing this?
Regards,
Cosmin Petrisor
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150828/5d1dc841/attachment.html>