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

Method start

opcua/server/internal_server.py:171–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

169 self.aspace.dump(path)
170
171 def start(self):
172 self.logger.info("starting internal server")
173 self.loop = utils.ThreadLoop()
174 self.loop.start()
175 self.subscription_service.set_loop(self.loop)
176 serverState = Node(self.isession, ua.NodeId(ua.ObjectIds.Server_ServerStatus_State))
177 serverState.set_value(ua.uaprotocol_auto.ServerState.Running, ua.VariantType.Int32)
178 Node(self.isession, ua.NodeId(ua.ObjectIds.Server_ServerStatus_StartTime)).set_value(datetime.utcnow())
179 if not self.disabled_clock:
180 self._set_current_time()
181
182 def stop(self):
183 self.logger.info("stopping internal server")

Callers

nothing calls this directly

Calls 4

set_valueMethod · 0.95
_set_current_timeMethod · 0.95
NodeClass · 0.90
set_loopMethod · 0.45

Tested by

no test coverage detected