Code Monkey home page Code Monkey logo

Comments (4)

sbernard31 avatar sbernard31 commented on June 5, 2024

Note that LWM2M-v1.2.1@core§Table: 7.3.2.-1 class Attributes also says :

The behaviour of Notification class attributes MUST follow [Cond_Attr] unless stated otherwise in this specification.

And [Cond_Attr§ 3.1. Conditional Notification Attributes ] says :

Attribute Name Value
Greater Than c.gt xs:decimal
Less Than c.lt xs:decimal
Change Step c.st xs:decimal (>0)

So it seems there is a contradiction between both specification.

from oma_lwm2m_for_developers.

sbernard31 avatar sbernard31 commented on June 5, 2024

Note there also a difference with pmin, pmax, epmin and epmax.
In LWM2M they are considered as Integer and in Cond_attr there are decimal.

from oma_lwm2m_for_developers.

mojanm avatar mojanm commented on June 5, 2024

As "c.gt" and "c.lt" IETF core conditional attributes that are supposed to be aligned with LWM2M attributes can be less than 0, can assume Table 7.3.2.1 in LwM2M spec needs to be updated to reflect this.

from oma_lwm2m_for_developers.

sbernard31 avatar sbernard31 commented on June 5, 2024

@mojanm thx for the answer, this really helps. 🙏
I will be able to update Leshan behavior.

What about pmin, pmax, epmin and epmax ?

Attribute Name CoRE Link param
Minimum Period "pmin" "=" 1*DIGIT
Maximum Period "pmax" "=" 1*DIGIT
Minimum Evaluation Period "epmin" "=" 1*DIGIT
Maximum Evaluation Period "epmax" "=" 1*DIGIT

(from LWM2M-v1.2.1@core§Table: 7.3.2.-1 class Attributes)

I guess it should be adapted too? Replacing 1*DIGIT by 1*DIGIT ["." 1*DIGIT] ?

because :

Attribute Name Value
Minimum Period (s) c.pmin xs:decimal (>0)
Maximum Period (s) c.pmax xs:decimal (>0)
Minimum Evaluation Period (s) c.epmin xs:decimal (>0)
Maximum Evaluation Period (s) c.epmax xs:decimal (>0)

(from [Cond_Attr§ 3.2. Conditional Control Attributes ])

from oma_lwm2m_for_developers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.