{"library":"node-red-contrib-opcua","title":"node-red-contrib-opcua","description":"A Node-RED node collection for OPC UA communication and server functionality, based on the node-opcua library. Current stable version is 0.2.351, released regularly with active maintenance. It provides client nodes to read, write, subscribe, browse, and invoke methods on OPC UA servers, plus server nodes to create variable and method nodes. Key differentiators include tight integration with Node-RED's flow-based programming model and support for complex OPC UA features like subscriptions, monitored items, events, and array index ranges. Compared to generic OPC UA SDKs, it abstracts connection management and message parsing into easy-to-configure nodes.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install node-red-contrib-opcua"],"cli":null},"imports":["import the node via Node-RED palette after installation","import the node via Node-RED palette after installation","import the node via Node-RED palette after installation"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// No code snippets needed - this is a Node-RED node collection.\n// To use: Install Node-RED, then run:\n// npm install node-red-contrib-opcua\n// Then in Node-RED flows, drag OpcUa-Client, OpcUa-Item, OpcUa-Server nodes.\n// Example flow (JSON) to read a variable:\n// [{\"id\":\"n1\",\"type\":\"OpcUa-Item\",\"name\":\"example-item\",\"topic\":\"ns=2;s=MyVariable\",\"datatype\":\"Int32\"},\n//  {\"id\":\"n2\",\"type\":\"OpcUa-Client\",\"name\":\"example-client\",\"endpoint\":\"opc.tcp://localhost:4840\",\"action\":\"read\",\"items\":[\"n1\"]},\n//  {\"id\":\"n3\",\"type\":\"inject\",\"name\":\"trigger\",\"topic\":\"\",\"payload\":\"\",\"repeat\":\"\",\"crontab\":\"\",once\":false},\n//  {\"id\":\"n4\",\"type\":\"debug\",\"name\":\"output\"},\n//  {\"id\":\"n3\",\"wires\":[[\"n2\"]]}, {\"id\":\"n2\",\"wires\":[[\"n4\"]]}]","lang":"javascript","description":"Installation and minimal flow to read an OPC UA variable using OpcUa-Client and OpcUa-Item nodes.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}