Closed Toby-Mills closed 3 years ago
Have you yet figured it out how that works? I'm also not able to send e.g. a string value to a particle device via msg.payload.
Have you yet figured it out how that works? I'm also not able to send e.g. a string value to a particle device via msg.payload.
Nope unfortunately not. I'm going to try just using a straight http request to the particle API, instead of using this library, which is a pity, because it seems to work pretty well otherwise.
Hi Toby, actually I figured it out yesterday: you just need to set a msg.argument property to the value you want to pass to the function :-) Regards, Max
That works like a charm! Thanks for your help Max!
Great! You're welcome!
I might be misunderstanding the Particle Function node, but it appears that the Argument property only supports a configured text string, rather than a value passed in as part of the message. Is it possible to rather use something like 'msg.payload'?