# Examples for read multiple values from OPCUA server with function node through node-red-contrib-opcua module

**URL:** <https://www.wago.community/t/examples-for-read-multiple-values-from-opcua-server-with-function-node-through-node-red-contrib-opcua-module/1840>\
**Category:** Node-RED\
**Created:** [May 14, 2025, 1:17am UTC](https://www.wago.community/t/examples-for-read-multiple-values-from-opcua-server-with-function-node-through-node-red-contrib-opcua-module/1840 "2025-05-14T01:17:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RamaDevi](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@RamaDevi](https://www.wago.community/u/RamaDevi)\
**Post date:** [May 14, 2025, 1:17am UTC](https://www.wago.community/t/examples-for-read-multiple-values-from-opcua-server-with-function-node-through-node-red-contrib-opcua-module/1840/1 "2025-05-14T01:17:02Z")

</div>

Can you please provide sample examples for read multiple values from OPCUA server with function node through node-red-contrib-opcua module

---

<div class="post-metadata">

**Author:** ![AdamReeve](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/adamreeve/32/59_2.png) [@AdamReeve](https://www.wago.community/u/AdamReeve)\
**Post date:** [May 14, 2025, 12:42pm UTC](https://www.wago.community/t/examples-for-read-multiple-values-from-opcua-server-with-function-node-through-node-red-contrib-opcua-module/1840/2 "2025-05-14T12:42:33Z")

</div>

Here is an example you can Import that uses a function to help Subscribe to a 300 element array of values in an OPCUA server. Another function will Unsubscribe to those same values. A third example is to write a single value.

[flows (1).json](https://www.wago.community/uploads/short-url/sDN8q4EBRsernRDEDNtCIRGRiIo.json) (8.9 KB)

---

<div class="post-metadata">

**Author:** ![RamaDevi](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@RamaDevi](https://www.wago.community/u/RamaDevi)\
**Post date:** [May 14, 2025, 2:22pm UTC](https://www.wago.community/t/examples-for-read-multiple-values-from-opcua-server-with-function-node-through-node-red-contrib-opcua-module/1840/3 "2025-05-14T14:22:45Z")

</div>

Thank you. We are able to read multiple values from OPCUA server with the help of this sample code
