Coder Social home page Coder Social logo

Comments (6)

mkovatsc avatar mkovatsc commented on July 20, 2024

For now at least a placeholder that provides a meaningful error ("not implemented").

from node-wot.

alexbrdn avatar alexbrdn commented on July 20, 2024

It seems to me that subscribe() did get implemented in the meantime, but it fails to work with coaps (I'm using good old Trådfri lamps).

Here's what I was able to figure out: ContentSerdes.contentToValue() expects the content to have field body. read and invoke do provide content.body to the callback. However, subscribe calls coaps.observe(), which results in the response message from CoapClient to be sent directly to next callback, bypassing the conversion as in read and invoke.

Result: Parsing error at codec.bytesToValue(), because content.body is undefined.

The fix for coaps is simple enough, but I don't know how well it will play with all other bindings, hence no PR.

from node-wot.

sebastiankb avatar sebastiankb commented on July 20, 2024

quick question: which node-wot version are you using?

from node-wot.

alexbrdn avatar alexbrdn commented on July 20, 2024
  • 7ff8cdd (HEAD, tag: v0.6.2) chore: update version tag for 0.6.2 node-wot release

from node-wot.

danielpeintner avatar danielpeintner commented on July 20, 2024

Is this issue still unresolved even after the new Scripting API changes/updates?

from node-wot.

danielpeintner avatar danielpeintner commented on July 20, 2024

HTTP is fixed by #233 while CoAP has been fixed before.

Please reopen if you encounter any related issue.

from node-wot.

Related Issues (20)

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.