# How to handle multiple (1 to N) OPC-UA devices with same subscriptions

**URL:** <https://discourse.nodered.org/t/how-to-handle-multiple-1-to-n-opc-ua-devices-with-same-subscriptions/69366>\
**Category:** General\
**Tags:** opcua\
**Created:** [21 October 2022 10:06 UTC](https://discourse.nodered.org/t/how-to-handle-multiple-1-to-n-opc-ua-devices-with-same-subscriptions/69366 "2022-10-21T10:06:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![godofglow](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/godofglow/32/18677_2.png) [@godofglow](https://discourse.nodered.org/u/godofglow)\
**Post date:** [21 October 2022 10:06 UTC](https://discourse.nodered.org/t/how-to-handle-multiple-1-to-n-opc-ua-devices-with-same-subscriptions/69366/1 "2022-10-21T10:06:41Z")

</div>

Hi,

is there any possibility or example how to handle one to N OPC-UA servers with identical NodeID's and subscriptions as simple as possible?  
Without copying the same nodes N times? Just adding additional IP for the next server.

Thanks

---

<div class="post-metadata">

**Author:** ![mikakaraila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikakaraila/32/37496_2.png) [@mikakaraila](https://discourse.nodered.org/u/mikakaraila)\
**Post date:** [10 November 2022 18:33 UTC](https://discourse.nodered.org/t/how-to-handle-multiple-1-to-n-opc-ua-devices-with-same-subscriptions/69366/2 "2022-11-10T18:33:30Z")

</div>

As session is server specific you cannot. Two alternatives:

1. Read them with client action readmultiple payload contains nodeIds that are always same  
Just change server endpoint.
2. Use aggregator that will collect them all together, but it will place them to different addresses as nodeId is individual. Aggregator will change it depending how it is implemented. Into new namespace or new nodeId.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 January 2023 18:34 UTC](https://discourse.nodered.org/t/how-to-handle-multiple-1-to-n-opc-ua-devices-with-same-subscriptions/69366/3 "2023-01-09T18:34:18Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
