Code Monkey home page Code Monkey logo

Comments (1)

jschloman avatar jschloman commented on May 22, 2024

Hello,

So right now the Leshan Client only supports TLV encoding but that should be transparent to the developer using it (so if you build a StringLwM2mResource, or TimeLwM2mResource you simply override the handleRead() and handleWrite() methods like in the Client Example and the encoding is done for you). There are *LwM2mResource classes provided for all for all of the specified LWM2M data types (String, Integer, Float/Decimal, Opaque, Time) so you would only need to build those and pass them into your Object Definition (there is a near-term change to the client that will change this behavior however). The Object Definition is then used when you issue a Register to a server. In the future the Client should be configurable to allow a user to specify what encoding they wish to send.

As for observations, the Leshan client currently allows for all readable Resources to be observed so there is no way for a client to say "this Resource is/is not Observable" (I can't remember if the specification allows for a valid readable Resource to not be observable...).

I hope this helps! Also this seems to be less of an issue and more of a question appropriate for the developer mailing list. Sign up is available here: https://dev.eclipse.org/mailman/listinfo/leshan-dev and the archive is available here: http://dev.eclipse.org/mhonarc/lists/leshan-dev/

Cheers,

-JF

from leshan.

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.