Replies: 1 comment 1 reply
-
class SubscriptionHandler:
def __init__(self, id):
self.id = id
"""
The SubscriptionHandler is used to handle the data that is received for the subscription.
"""
def datachange_notification(self, node: Node, val, data):
"""
Callback for asyncua Subscription.
This method will be called when the Client received a data change message from the Server.
"""
_logger.info(f'[Client {self.id}] datachange_notification {node} {val}')
....
handler = SubscriptionHandler(client_id) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In example client-subscription.py, I want to add an ID (int) in class SubscriptionHandler , and the ID is used for the increment operation. How can I do?
Beta Was this translation helpful? Give feedback.
All reactions