Subscribe to OPC UA Values in Node-RED
This Node-RED flow demonstrates how to subscribe to real-time data updates from an OPC UA server. Using the OpcUa-Item node, it listens to changes on specified OPC UA nodes and processes the incoming data for further use, such as visualization, logging, or alerts. Ideal for real-time monitoring in industrial or IoT applications.
[{"id":"732baf77b3b4e0d1","type":"inject","z":"a3771d5a74a10df6","name":"Subscribe Data","props":[],"repeat":"","crontab":"","once":true,"onceDelay":"","topic":"","x":1500,"y":640,"wires":[["77b87a5ffd444c15"]]},{"id":"f80957d1b7efd45d","type":"OpcUa-Client","z":"a3771d5a74a10df6","endpoint":"","action":"subscribe","deadbandvalue":"","time":"1","timeUnit":"s","localfile":"","localkeyfile":"","useTransport":false,"maxChunkCount":"","maxMessageSize":"","receiveBufferSize":"","sendBufferSize":"","setstatusandtime":false,"keepsessionalive":false,"name":"OPC UA Client","x":1900,"y":640,"wires":[["45f6d080342efe33"],[],[]]},{"id":"45f6d080342efe33","type":"debug","z":"a3771d5a74a10df6","name":"Result Output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":2100,"y":620,"wires":[]},{"id":"77b87a5ffd444c15","type":"OpcUa-Item","z":"a3771d5a74a10df6","item":"","datatype":"Double","value":"","name":"Subscribe Data","x":1720,"y":640,"wires":[["f80957d1b7efd45d"]]}]