Giter VIP home page Giter VIP logo

Comments (5)

dbaba avatar dbaba commented on May 22, 2024 1

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.

djDuff avatar djDuff commented on May 22, 2024 1

@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.

dbaba avatar dbaba commented on May 22, 2024

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.

djDuff avatar djDuff commented on May 22, 2024

@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.

dbaba avatar dbaba commented on May 22, 2024

@djDuff Got it, thanks.

from node-red-contrib-lwm2m.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.