I need to subscribe to ~1000 nodes, which were created in a hierarchy, like:
ns=2;s=0:Manufacturing.E01.Ambient.Temperature
ns=2;s=0:Manufacturing.E01.Ambient.WindDir
ns=2;s=0:Manufacturing.E01.Commands.AckAllErrors
ns=2;s=0:Manufacturing.E03.Ambient.Temperature
ns=2;s=0:Manufacturing.E03.Ambient.WindDir
ns=2;s=0:Manufacturing.E03.Ambient.WindSpeed
I am treating every update the same way, thus calling subscription.monitor()
function for each of them and creating a new callback function does not seem to be the optimal way to me.
Is it possible to subscribe to multiple nodes with a pattern, e.g all nodes that fall under:
ns=2;s=0:Manufacturing.E01.