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

Method send_request

opcua/client/ua_client.py:75–85  ·  view source on GitHub ↗

send request to server. timeout is the timeout written in ua header returns response object if no callback is provided

(self, request, callback=None, timeout=1000, message_type=ua.MessageType.SecureMessage)

Source from the content-addressed store, hash-verified

73 return future
74
75 def send_request(self, request, callback=None, timeout=1000, message_type=ua.MessageType.SecureMessage):
76 """
77 send request to server.
78 timeout is the timeout written in ua header
79 returns response object if no callback is provided
80 """
81 future = self._send_request(request, callback, timeout, message_type)
82 if not callback:
83 data = future.result(self.timeout)
84 self.check_answer(data, " in response to " + request.__class__.__name__)
85 return data
86
87 def check_answer(self, data, context):
88 data = data.copy()

Callers 15

create_sessionMethod · 0.80
activate_sessionMethod · 0.80
close_sessionMethod · 0.80
browseMethod · 0.80
browse_nextMethod · 0.80
readMethod · 0.80
writeMethod · 0.80
get_endpointsMethod · 0.80
find_serversMethod · 0.80
register_serverMethod · 0.80
register_server2Method · 0.80

Calls 2

_send_requestMethod · 0.95
check_answerMethod · 0.95

Tested by 1

test_service_faultMethod · 0.64