Comments (8)
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.
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.
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.
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.
So we can close this bug ? :)
from leshan.
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.
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.
Fix in master (commit 2e6122b)
from leshan.
Related Issues (20)
- Moving from JLine2 to JLine3 for leshan-client-demo Interactive commands.
- External Risk which could affect Leshan Project HOT 9
- No consistent value ordering for composite requests HOT 7
- How to know if a cliente Lwm2m 1.0 is availble HOT 5
- Add CoAP over TLS (over TCP) transport layer HOT 1
- Should Leshan client port be configurable? HOT 2
- Client is not registering on Server for Leshan version "2.0.0-M14" HOT 4
- Best way to test queue mode with Leshan server and leshan client demo 2.0 ? HOT 6
- Queue mode doesnt seem to work when testing Leshan client 2.0 + server 2.0 HOT 8
- Parallel Requests Handling in Leshan Server HOT 4
- Demo server configure PSK ID and PSK content HOT 4
- FW update test HOT 3
- CoAP version 0 not supported HOT 3
- [Feature Request] Ability to monitor request-response lifecycle HOT 9
- Add new object HOT 3
- Plan for 2.0.0-M15 ๐ฏ HOT 24
- Is OMA Object 9 resource 12 correct? HOT 2
- Is Leshan server ready for production in industry ? HOT 11
- [Firmware Update][Blockwise] HOT 8
- Should sending timestamped data in an observation request response be a supported use case? HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leshan.