Comments (1)
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)
- 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 12
- The addition of a resource instance is not detected by LwM2mTestObject (3442) HOT 3
- Precision loss when deserialize BigDecimal with SenMLJSON / old JSON content format. 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.