BiancoRoyal / node-red-contrib-iiot-opcua

deprecated - very new developed by PLUS for Node-RED - https://plus4nodered.com
https://www.npmjs.com/package/node-red-contrib-iiot-opcua
BSD 3-Clause "New" or "Revised" License
34 stars 8 forks source link

Result filter boolean issues #76

Closed NichtEuler closed 5 years ago

NichtEuler commented 5 years ago

I'm submitting a ...

Problem

Information

Current behaviour

Result filter always returns true when "Send Just Values" Box checked. If "Send Just Values" unchecked: - true: value in msg.payload

Your Environment

Please tell us about your environment:

NichtEuler commented 5 years ago

node --version = v8.12.0 Same issue with this version. What does the "Send just values" checkbox do?

biancode commented 5 years ago

{"value":{"dataType":"Boolean","arrayType":"Scalar","value":false}} value origin type object convert to Boolean

is now object and not boolean

biancode commented 5 years ago

opcuaIIoT:core:details convertDataValue: {"value":true} value origin type boolean convert to Boolean +5s opcuaIIoT:core:details convertDataValue is: true +0ms opcuaIIoT:core:details convertDataValue: {"value":{"dataType":"Boolean","arrayType":"Scalar","value":false}} value origin type object convert to Boolean +10s opcuaIIoT:core:details convertDataValue is: [object Object] +0ms

biancode commented 5 years ago

hint to @erossignon -> there are two different results from node-opcua 0.4.6 on boolean

biancode commented 5 years ago

I'm sorry, but the payload will be an object for now if it is false.