eclipse-leshan / leshan

Java Library for LWM2M
https://www.eclipse.org/leshan/
BSD 3-Clause "New" or "Revised" License
653 stars 407 forks source link

Remove Attachement(or Assignation Level) to Attribute Model #1588

Closed sbernard31 closed 9 months ago

sbernard31 commented 9 months ago

An attribute is fully determined by several characteristics.

LWM2M v1.1.1 defines :

Attribute characteristic Description
Attachment The Object, Object Instance, or Resource, to which an Attribute is logically applied
Assignation Level The Level (Object, Object Instance, Resource, Resource Instance) where the value of the Attribute is set (by WRITE-ATTRIBUTES).

(source : LWM2M-v1.1.1@core§Table: 5.1.1.-1 Attribute Characteristics)

But in LWM2M v1.2.1, Asignation Level was removed from Attribute characteristic. Attribute characteristic Description
Attachment The Level (Object, Object Instance, Resource, Resource Instance) to which an Attribute is attached

(Source : LWM2M-v1.2.1@core§Table: 7.3.-1 Attribute Characteristics)

The reason seems to be that it was confusing and redundant : https://github.com/OpenMobileAlliance/OMA_LwM2M_for_Developers/issues/539#issuecomment-1039159909

Currently in Leshan,

So in Leshan, we should probably :

sbernard31 commented 9 months ago

Implemented by 6c03a3d34a138870d5051555dec8b443bb913f35 and integrated in master.

It will be available in next release (2.0.0-M15)