deprecated - very new developed by PLUS for Node-RED - https://plus4nodered.com
BSD 3-Clause "New" or "Revised" License
34
stars
8
forks
source link
Passing falsy payload values to OPCUA-IIoT-Node does not work #88
Closed
systec-ad closed 5 years ago
Problem
bug report
Information
Current behaviour
Passing a falsy value (e.g. 0.0) to a OPCUA-IIoT-Node node will result wrong output messages. (NaN, empty strings)
The value of messages overrides the Value setting
Expected behaviour
Falsy values should be handled/passed "normal" values
The Value should override the message payload as the documentation says. ("It overrides the given payload if it is not null.")
Minimal reproduction of the problem with instructions
Your Environment
Possible solution
I think the problem is located here.
Changing the line from
to
should solve the main issue.
Hint: This solution would not allow an empty string as "Value" setting. Not sure if this would be a big issue.
Thanks