Comments (5)
You're right, since the refactoring/API changing all about object links (register, update, discover) is in a pretty bad state.
I currently work on it.
from leshan.
So, I fixed the problem of link object which does not contains instance ID at registration.
I also integrated what you propose to fix the update problem.
But, This means now when you want to update the Link Object part you must write something like that ...
client.send(new UpdateRequest(
"registrationId", null, null, null,
LinkFormatHelper.getClientDescription(client.getObjectEnablers(), null)));
not really sexy !
Maybe, it's not so bad, because we should probably manage update automatically. User should not have to write this kind of code ...
from leshan.
Yes, may be we can improve this in the future...
from leshan.
The implementation of the visit method with UpdateRequest still contains this implementation:
LinkObject[] linkObjects = request.getObjectLinks();
if (linkObjects == null)
coapRequest.setPayload(LinkObject.serialyse(linkObjects));
I think it should be implemented as described above
if (linkObjects != null) {
payload = LinkFormatUtils.payloadize(linkObjects);
coapRequest.setPayload(payload);
}
from leshan.
It was a bug. it should be fixed now.
from leshan.
Related Issues (20)
- Migrate frontend tooling : move from `vue-cli` to `vite` HOT 4
- PositiveLongAttributeModel and PositiveDoubleAttributeModel getInvalidValueCause method is sensitive to null value HOT 12
- After DTLS handshake by PSK. server send WRITE request on /0/1 using TLV, the package of CoAP is incomplete. HOT 23
- How to handle SEND messages from a device whose IP may change HOT 7
- bootstrap webpage display blank HOT 4
- whether the operation procedure is correct? HOT 2
- Base64 validation issue when handling binary payload sent with SENML_JSON format HOT 3
- Migration from `yarn-classic` to `modern yarn` HOT 3
- READ RESPONSE with timestamped SenML HOT 22
- 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
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.