Commit 3e63ceaa authored by Ralph Martig's avatar Ralph Martig Committed by oroulet

changed variable name in write method

parent 3f3ed7fb
...@@ -42,10 +42,10 @@ class UaFile: ...@@ -42,10 +42,10 @@ class UaFile:
async def write(self, data: bytes): async def write(self, data: bytes):
""" writes file contents """ """ writes file contents """
read_node = await self._file_node.get_child("Write") write_node = await self._file_node.get_child("Write")
arg1 = ua.Variant(self._handle, ua.VariantType.UInt32) arg1 = ua.Variant(self._handle, ua.VariantType.UInt32)
arg2 = ua.Variant(data, ua.VariantType.ByteString) arg2 = ua.Variant(data, ua.VariantType.ByteString)
return await self._file_node.call_method(read_node, arg1, arg2) return await self._file_node.call_method(write_node, arg1, arg2)
async def get_size(self): async def get_size(self):
""" gets size of file """ """ gets size of file """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment