intel / liblwm2m

liblwm2m is an implementation of the LWM2M protocol from the Open Mobile Alliance.
BSD 3-Clause "New" or "Revised" License
44 stars 28 forks source link

deleteFunc callback can't address a specific object instance #20

Closed fab13n closed 10 years ago

fab13n commented 10 years ago

the user callback takes an instance ID and an object structure; if the object has several instances, there's no way to know which one was targeted by the original uri.

dnav commented 10 years ago

Hi, I'm not sure to understand your issue. The instance ID past as parameter indicates which instance is targeted. See prv_delete in tests/client/test_object.c

fab13n commented 10 years ago

Duh, my bad. I was trying to delete a resource rather than an instance, which isn't legal according to the protocol.