Skip to content

Commit

Permalink
changed variable name in write method
Browse files Browse the repository at this point in the history
  • Loading branch information
martigr authored and oroulet committed Nov 20, 2022
1 parent 3f3ed7f commit 3e63cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asyncua/client/ua_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ async def read(self):

async def write(self, data: bytes):
""" 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)
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):
""" gets size of file """
Expand Down

0 comments on commit 3e63cea

Please sign in to comment.