Commit f61d2b3d authored by Padraic Calpin's avatar Padraic Calpin Committed by oroulet

Stop client acknowledging KeepAliveMessags

Resolves issue #263
parent f653d611
......@@ -548,9 +548,12 @@ class UaClient:
except Exception: # we call user code, catch everything!
self.logger.exception("Exception while calling user callback: %s")
# Repeat with acknowledgement
ack = ua.SubscriptionAcknowledgement()
ack.SubscriptionId = subscription_id
ack.SequenceNumber = response.Parameters.NotificationMessage.SequenceNumber
if response.Parameters.NotificationMessage.NotificationData:
ack = ua.SubscriptionAcknowledgement()
ack.SubscriptionId = subscription_id
ack.SequenceNumber = response.Parameters.NotificationMessage.SequenceNumber
else:
ack = None
async def create_monitored_items(self, params):
self.logger.info("create_monitored_items")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment