Industrial-IoT icon indicating copy to clipboard operation
Industrial-IoT copied to clipboard

Support automatic re-evaluating subscriptions on DataModelChange events (Dynamic information model and OPC Publisher)

Open fijo1015 opened this issue 3 years ago • 4 comments

Hi everyone,

I am using a dynamic OPC UA information model. What I mean by dynamic is, that in the beginning the information model contains a few nodes and some methods. By calling these methods new nodes will be created. So the information model is growing while using it. I'd like to know, if the OPC Publisher Module can handle nodes that are not present in the beginning. In the configuration file (publishednodes.json) i want to list some nodes that are not present in the beginning. Is OPC Publisher able to register the appearing nodes and then publish it to the IoT Hub?

Regards jo

fijo1015 avatar Nov 05 '20 13:11 fijo1015

This is currently not supported. However, if the server sends out a "DataModelChanged" event (check the OPC UA spec, not sure if the name is 100% accurate), we could hook into this and try to publish the new nodes then.

barnstee avatar Nov 09 '20 12:11 barnstee

Is it this you mean: ModelChangeEvents are generated to indicate a change of the AddressSpace structure. https://reference.opcfoundation.org/v104/Core/docs/Part3/9.32.1/

buzzfrog avatar Nov 09 '20 15:11 buzzfrog

Yep, that's it.

barnstee avatar Nov 09 '20 15:11 barnstee

Whatever is configured will be attempted to be added to a subscription. If the monitored item does not exist this will be re-attempted periodically. That is the expected behavior. Please reopen if this is not what you are seeing.

marcschier avatar Jan 16 '23 11:01 marcschier