MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / SubHandler

Class SubHandler

examples/client_to_prosys_events.py:10–20  ·  view source on GitHub ↗

Subscription Handler. To receive events from server for a subscription

Source from the content-addressed store, hash-verified

8
9
10class SubHandler(object):
11
12 """
13 Subscription Handler. To receive events from server for a subscription
14 """
15
16 def datachange_notification(self, node, val, data):
17 print("Python: New data change event", node, val)
18
19 def event_notification(self, event):
20 print("Python: New event", event.EventType)
21
22
23

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected