Open takraj opened 1 year ago
@hutcheb or @sruehl ... I know you two are involved a bit more in this protocol ... can you help here?
So it turns out the OPCUA subscriptions don’t support a poling interval (Return a value every X seconds). They only support returning values when they change.
We would have to create an internal register of values, update it every time we see values change, and then use the internal value to generate a subscription response every X seconds.
I guess building a general purpose subscription simulator that can be used for any driver would be a good idea.
What happened?
The documentation says that tags added via
addCyclicField(...)
will be polled in the specified time intervals. My expectation is to get subscription events each time these fields are getting polled, but apparently I don't get any. The other two types of subscriptions are working OK, however I don't see any difference betweenaddChangeOfStateField(...)
andaddEventField(...)
with the OPC-UA driver.Example code to reproduce the issue:
Logs
Version
v0.10.0
Programming Languages
Protocols