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

Method write

opcua/client/ua_client.py:363–371  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

361 return response.Results
362
363 def write(self, params):
364 self.logger.info("read")
365 request = ua.WriteRequest()
366 request.Parameters = params
367 data = self._uasocket.send_request(request)
368 response = struct_from_binary(ua.WriteResponse, data)
369 self.logger.debug(response)
370 response.ResponseHeader.ServiceResult.check()
371 return response.Results
372
373 def get_endpoints(self, params):
374 self.logger.info("get_endpoint")

Callers 3

bump_versionFunction · 0.45
_send_requestMethod · 0.45
send_helloMethod · 0.45

Calls 3

struct_from_binaryFunction · 0.90
send_requestMethod · 0.80
checkMethod · 0.80

Tested by

no test coverage detected