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

Method create_session

opcua/client/ua_client.py:284–293  ·  view source on GitHub ↗
(self, parameters)

Source from the content-addressed store, hash-verified

282 return self._uasocket.close_secure_channel()
283
284 def create_session(self, parameters):
285 self.logger.info("create_session")
286 request = ua.CreateSessionRequest()
287 request.Parameters = parameters
288 data = self._uasocket.send_request(request)
289 response = struct_from_binary(ua.CreateSessionResponse, data)
290 self.logger.debug(response)
291 response.ResponseHeader.ServiceResult.check()
292 self._uasocket.authentication_token = response.Parameters.AuthenticationToken
293 return response.Parameters
294
295 def activate_session(self, parameters):
296 self.logger.info("activate_session")

Callers

nothing calls this directly

Calls 3

struct_from_binaryFunction · 0.90
send_requestMethod · 0.80
checkMethod · 0.80

Tested by

no test coverage detected