Cosmin, I hope this makes your life easier: https://gerrit.iotivity.org/gerrit/2313
Best, Tim From: iotivity-dev-bounces at lists.iotivity.org [mailto:[email protected]] On Behalf Of Petrisor, Cosmin Sent: Friday, August 28, 2015 1:25 AM To: iotivity-dev at lists.iotivity.org Subject: [dev] NULL EntityHandler exception for Android 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/41407da0/attachment.html>
