最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

opc ua - Why is browseName included in NodeId when adding OPC-UA variables in Node-RED? - Stack Overflow

programmeradmin2浏览0评论

I'm using Node-RED to create an OPC-UA structure dynamically. Everything is working fine, but I noticed that the browseName is being appended to the NodeId when adding variables.

Here is how I'm adding a variable:

messages.push({
    ...msg,
    payload: { opcuaCommand: "addVariable" },
    topic: `${variableId};browseName=${browseName};datatype=${opcuaType}`
});

And here’s what I see in Prosys OPC-UA Browser:

Expected Behavior: The NodeId should remain clean (ns=1;s=FESP_100140.Electricity.Phase1.ActivePower), while browseName should only affect the display name and browsing behavior.

Questions:

  • Is this the expected behavior in Node-RED's OPC-UA implementation, or is this a bug?
  • Should browseName be passed differently in Node-RED OPC-UA?
  • How can I properly set the NodeId and browseName separately without concatenating them?

Any insights or fixes would be greatly appreciated! Thanks in advance.

EDIT 2025-03-19: I’ve opened an issue on the GitHub page of the node-red-contrib-opcua project:

发布评论

评论列表(0)

  1. 暂无评论