NODE-RED How to create a OPC-UA Client on DataLayer

Hello,

On a Virtual ctrlX with the new version 1.10.3 I've installed the new Snaps of Node-red and OPC-UA Client.

In node-red I would like to create a new client. On the documentation of the OPC-UA Client is written that the name and the endpointUrl are the only mandatory input, everything else is optional.

I tried to create a new client both with only the mandatory input and with all the input, but the debug gives me this error: "CtrlxProblemError: DL_TYPE_MISMATCH".

These are the two configurations:

 

All Parameters:

Mandatory Parameters:

 

Why the type mismatch error? What am I missing?

 

Best regards

Andrea Toffalori

 

 

 

 

Best reply by CodeShepherd

I think at least you are using not the correct input to the Data Layer node. It is expecting a specified strukture. You could have a look to this topic for some examples.

EDIT:

 

var newMsg = {};
newMsg.payload = {
      "type":"object",
      "value":{
	    "name":"client3","endpointUrl":"opc.tcp://127.0.0.1:4840"
	    }
     }
return newMsg;

 

 

View original
1 reply