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

Method _create_subscription

opcua/server/history.py:200–208  ·  view source on GitHub ↗
(self, handler)

Source from the content-addressed store, hash-verified

198 self.storage = storage
199
200 def _create_subscription(self, handler):
201 params = ua.CreateSubscriptionParameters()
202 params.RequestedPublishingInterval = 10
203 params.RequestedLifetimeCount = 3000
204 params.RequestedMaxKeepAliveCount = 10000
205 params.MaxNotificationsPerPublish = 0
206 params.PublishingEnabled = True
207 params.Priority = 0
208 return Subscription(self.iserver.isession, params, handler)
209
210 def historize_data_change(self, node, period=timedelta(days=7), count=0):
211 """

Callers 2

historize_data_changeMethod · 0.95
historize_eventMethod · 0.95

Calls 1

SubscriptionClass · 0.90

Tested by

no test coverage detected