Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
3e63ceaa
Commit
3e63ceaa
authored
Nov 18, 2022
by
Ralph Martig
Committed by
oroulet
Nov 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed variable name in write method
parent
3f3ed7fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
asyncua/client/ua_file.py
asyncua/client/ua_file.py
+2
-2
No files found.
asyncua/client/ua_file.py
View file @
3e63ceaa
...
@@ -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 """
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment