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)
- SENML_JSON encoder modifications proposal HOT 6
- X509 configure in leshan server. HOT 4
- There was a error during Testing FOTA HOT 4
- "yarn build" is not working correctly on Windows HOT 15
- NullPointerException occurs in running a tutorial code building a simple LwM2M Client HOT 2
- Notification with Error Code are not supported HOT 3
- error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed HOT 5
- read object payload failed. HOT 3
- ๐ก Find a better alternative to dependabot ! HOT 1
- Did leshan bootstrap server support BLOCKWISE in CoAP HOT 1
- Try to get OpenSFF Badge HOT 1
- How are Observations stored on client side? HOT 27
- ObserveCompositeTimeStampTest failed when running with java 17+ HOT 1
- How to test a leshan-spring server and parse objects in californium? HOT 3
- Leshan server demo throws null-pointer exception HOT 14
- Replace usage of `URI` class to identify endpoint.
- Question about type of numeric LWM2M attributes. HOT 4
- Including timestamped send option to SendService HOT 3
- Use Leshan library to simulate several clients HOT 3
- Remove Attachement(or Assignation Level) to Attribute Model HOT 1
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.