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

Method call

opcua/client/ua_client.py:599–606  ·  view source on GitHub ↗
(self, methodstocall)

Source from the content-addressed store, hash-verified

597 return response.Results
598
599 def call(self, methodstocall):
600 request = ua.CallRequest()
601 request.Parameters.MethodsToCall = methodstocall
602 data = self._uasocket.send_request(request)
603 response = struct_from_binary(ua.CallResponse, data)
604 self.logger.debug(response)
605 response.ResponseHeader.ServiceResult.check()
606 return response.Results
607
608 def history_read(self, params):
609 self.logger.info("history_read")

Callers 2

_call_methodFunction · 0.45

Calls 3

struct_from_binaryFunction · 0.90
send_requestMethod · 0.80
checkMethod · 0.80

Tested by 1