node-red-contrib-opcua icon indicating copy to clipboard operation
node-red-contrib-opcua copied to clipboard

Support for displayName

Open Mradvanyi123 opened this issue 10 months ago • 3 comments

Hello

Can the OpcUa-Server node be extended to allow the setting of display names? Similarly, as the description is set. I tested the following for adding variables.

let displayName = ""; ...

 const dn = msg.topic.indexOf("displayName=");
  if (dn > 0) {
    displayName = msg.topic.substring(dn + 12);
    console.log(displayName);
    if (displayName.indexOf(";") >= 0) {
      displayName = displayName.substring(0, displayName.indexOf(";"));
    }
  }

... displayName: displayName || browseName,

Mradvanyi123 avatar Apr 22 '24 12:04 Mradvanyi123