Giter Site home page Giter Site logo

Comments (4)

dceejay avatar dceejay commented on June 15, 2024

Matt,
the dweetio API only allows the sending of objects... - so raw values have to be wrapped in something to make it an object.... - we chose "payload" .... if a node-red dweetio input node receives an object called payload then it does "do the right thing" and unpacks it back to a raw value.

Closing this as would need them to change their API to allow sending raw data.

from node-red-nodes.

mattbrailsford avatar mattbrailsford commented on June 15, 2024

But there should be an option to say "I'll make my own object so don't wrap
it in a payload object". I have another system connecting at the other end
for which it expects the dweet contents to be a specific format, if I want
to connect it to node-red, I now have to explicitly handle the payload
object and unwrap it, which isn't ideal.
On 9 Jul 2015 10:39 pm, "Dave Conway-Jones" [email protected]
wrote:

Matt,
the dweetio API only allows the sending of objects... - so raw values have
to be wrapped in something to make it an object.... - we chose "payload"
.... if a node-red dweetio input node receives an object called payload
then it does "do the right thing" and unpacks it back to a raw value.

Closing this as would need them to change their API to allow sending raw
data.


Reply to this email directly or view it on GitHub
#122 (comment)
.

from node-red-nodes.

dceejay avatar dceejay commented on June 15, 2024

Whoa... you are so right.. now checks if it's an object and if so leaves it alone... otherwise wraps it in {payload:...

republished (so leaving closed)

from node-red-nodes.

mattbrailsford avatar mattbrailsford commented on June 15, 2024

Perfect! :)
On 9 Jul 2015 11:21 pm, "Dave Conway-Jones" [email protected]
wrote:

Whoa... you are so right.. now checks if it's an object and if so leaves
it alone... otherwise wraps it in {payload:...

republished (so leaving closed)


Reply to this email directly or view it on GitHub
#122 (comment)
.

from node-red-nodes.

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.