Code Monkey home page Code Monkey logo

Comments (8)

sbernard31 avatar sbernard31 commented on May 22, 2024

The Spec say that there is no LWM2M Server instance for bootstrap server.
In other words, all instances of LWM2M Server aren't related to a bootstrap server.
So why should we set the shortServerId to 0 ?

from leshan.

boaks avatar boaks commented on May 22, 2024

Because the 0 indicates in my opinion, that there is no related LWM2M Server.
A value different from 0 may be seen as something like a "wild pointer".

from leshan.

sbernard31 avatar sbernard31 commented on May 22, 2024

We talk about the ยงE.2 right ? I mean the object 1, resource 0 ?
So we are in the LWM2M Server object, here we don't have instance related to bootstrap server.
But we always need a link to the Security(0) object. (to know server URI, credentials ..)

from leshan.

boaks avatar boaks commented on May 22, 2024

Uups, my issue was missleading, sorry!
I ment the shortserverid in the lwm2m security object (0/?/10).
The demo client uses:
initializer.setInstancesForObject(SECURITY, noSecBootstap(serverURI, 123));
so it creates a security object with 123 as shortserverid.

from leshan.

sbernard31 avatar sbernard31 commented on May 22, 2024

So we can close this bug ? :)

from leshan.

boaks avatar boaks commented on May 22, 2024

Hm, though the security object for a bootstrap server uses a shortserveid other then 0, I would say this is a bug. Or what should be the "meaning" of a shortserverid 123 for a bootstrap server security object?

from leshan.

sbernard31 avatar sbernard31 commented on May 22, 2024

Ok I re-read the short server id resource description in the security object :
"This identifier uniquely identifies each LWM2M Server configured for the LWM2M Client. This Resource MUST be set when the Bootstrap Server Resource has false value. Default Short Server ID (i.e. 0) MUST NOT be used for identifying the LWM2M Server."
So I think you're right the security object corresponding to the bootstrap server should always have a short server id set to 0.
We need to change static constructors about bootstrap server by removing the shortID attribute.

from leshan.

sbernard31 avatar sbernard31 commented on May 22, 2024

Fix in master (commit 2e6122b)

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.