Replies: 2 comments 3 replies
-
it is! you are using our client right!? but first things first does it work with ua expert? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, tested it with the subscription examples and ua expert. Only when I subscribe directly to the emitting object I'm able to receive events. Changing and running the ...
obj = await client.nodes.root.get_child(["0:Objects", "2:MyObject"])
_logger.info("MyObject is: %r", obj)
myevent = await client.nodes.root.get_child(["0:Types", "0:EventTypes", "0:BaseEventType", "2:MyFirstEvent"])
_logger.info("MyFirstEventType is: %r", myevent)
msclt = SubHandler()
sub = await client.create_subscription(100, msclt)
#handle = await sub.subscribe_events(obj, myevent)
#handle = await sub.subscribe_events() # use default to subscribe to server base events
handle = await sub.subscribe_events(client.nodes.server, myevent)
await asyncio.sleep(10)
await sub.unsubscribe(handle)
await sub.delete()
... Am I missing something? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I tried to subscribe to events emitted by the server node. However, it seems events are not emitted by it but the specification states "any OPC UA Server that supports eventing shall expose at least one Node as EventNotifier. The Server Object defined in OPC 10000-5 is used for this purpose."
Is this not implemented or have I done something wrong? I was not able to find a disscussion regrading this topic. Has it maybe already dicussed somewhere?
Beta Was this translation helpful? Give feedback.
All reactions