Comments (5)
I misunderstood your question. I though this was just a default value issue but you're talking about writing object resource, aren't you?
If so, could you please post your flow JSON? Let me test it.
from node-red-contrib-lwm2m.
@dbaba Baba san, excuse me, it was misconfiguration in my Node-Red.
Yes, this issue is fixed: msg.payload from inject node is sent correctly as "value".
Thank you so much!
from node-red-contrib-lwm2m.
Indeed, numeric types have now default 0. I thought numeric values didn't have NULL (empty byte array) but it seems to be my misunderstanding as OMA Spec doesn't mention it (probably because the empty string/null value handling is out of LwM2M spec scope and is implementation dependent). Will revert the default behaviors.
I also introduced a new setting to change its behavior. The current behavior will be optional and can be enabled if necessary.
from node-red-contrib-lwm2m.
@dbaba I have upgraded to 2.1.0 - It is still not working for me.
I tried with both "Subscribe LwM2M object events" enabled and disabled (if it is correct option)
Debug of output:
{ "payload": [{ "uri": "/3303/0/5700", "value": { "type": "FLOAT", "acl": "R", "value": "" } }], "_msgid": "a72e7476.23f9c8" }
My guess would be I use double quotes "value": "", not single quotes for empty value in Config node - Objects.. Maybe that's the case?
Posting current Objects config - just in case:
{ "3303": { "0": { "5700": { "type": "FLOAT", "acl": "R", "value": "" } }, "1": { "5700": { "type": "FLOAT", "acl": "R", "value": "" }, "5701": { "type": "STRING", "acl": "R", "value": "" } }, "2": { "5700": { "type": "FLOAT", "acl": "R", "value": "" } }, "3": { "5700": { "type": "FLOAT", "acl": "R", "value": "" } } } }
from node-red-contrib-lwm2m.
@djDuff Got it, thanks.
from node-red-contrib-lwm2m.
Related Issues (19)
- Unable to install with Node-Red HOT 18
- bootstrap failed HOT 12
- Could not put the node to flow editor. HOT 2
- client registers only with smart object instance not zero - using bootstrap HOT 2
- bootstrap: goes to "registering" state after several hours HOT 2
- Question: Multiple instance resource HOT 3
- Question: How to trigger "LwM2M Client Out" node to send Register / Deregister request? HOT 2
- Objects JSON HOT 1
- Integration with Arm Pelion HOT 1
- Lazy-start cause an error on deployment v2.9.0 HOT 1
- Error spawn messsage - deploying LWM2M client HOT 2
- LWM2M client does not start in DTLS mode HOT 1
- Bootstrapping HOT 3
- Error: Duplicate LwM2M Server Configuration HOT 3
- Write Boolean resource always true HOT 3
- Node responds 5.00 Internal Server Error, to Discover Operation HOT 1
- Installation of module node-red-contrib-lwm2m failed HOT 1
- client registers only with 0 smart object instance HOT 3
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 node-red-contrib-lwm2m.