August-16th-2019, 09:45 AM
(August-15th-2019, 06:32 AM)Armin@netPI Wrote: Dear Farani,
you found a bug in the documentation. The documentation of the inject node in relation to the fieldbus node is wrong. Thank you for your remark
It is not correct to inject a "number" type value to "msg.payload" like as it is documented today.
Instead you have to use "JSON" type value and then inject a msg.payload value {"value":2} as example.
Look how I did it:
What you can of course do is to use a simple inject node that connects to a function node where you write a javascript code like this:
msg.payload = {};
msg.payload.value = 2;
and then connect it to a fieldbus node. Look here:
Sorry for this inconvenience. I already wrote the documentation team an email to get it corrected in future in the manual.
Thx
Armin
Much appreciated. Thank you very much.