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
a231bba9
Commit
a231bba9
authored
Jan 07, 2020
by
Christopher Bremner
Committed by
oroulet
Jan 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a few methods to sync Node API
parent
86b214aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
asyncua/sync.py
asyncua/sync.py
+25
-5
No files found.
asyncua/sync.py
View file @
a231bba9
...
...
@@ -248,13 +248,20 @@ class Node:
self
.
aio_obj
=
aio_node
self
.
tloop
=
tloop
def
__hash__
(
self
):
return
self
.
aio_obj
.
__hash__
()
def
__eq__
(
self
,
other
):
return
self
.
aio_obj
==
other
.
aio_obj
def
__ne__
(
self
,
other
):
return
not
self
.
__eq__
(
other
)
def
__str__
(
self
):
return
"Sync"
+
self
.
aio_obj
.
__str__
()
__repr__
=
__str__
def
__hash__
(
self
):
return
self
.
aio_obj
.
__hash__
()
@
property
def
nodeid
(
self
):
return
self
.
aio_obj
.
nodeid
...
...
@@ -263,6 +270,10 @@ class Node:
def
get_browse_name
(
self
):
pass
@
syncmethod
def
get_display_name
(
self
):
pass
@
syncmethod
def
get_children
(
self
,
refs
=
ua
.
ObjectIds
.
HierarchicalReferences
,
nodeclassmask
=
ua
.
NodeClass
.
Unspecified
):
pass
...
...
@@ -317,7 +328,7 @@ class Node:
set_value
=
write_value
# legacy
@
syncmethod
def
read_value
(
self
,
val
):
def
read_value
(
self
):
pass
get_value
=
read_value
# legacy
...
...
@@ -326,8 +337,17 @@ class Node:
def
call_method
(
self
,
methodid
,
*
args
):
pass
def
__eq__
(
self
,
other
):
return
self
.
aio_obj
==
other
.
aio_obj
@
syncmethod
def
get_references
(
self
,
refs
=
ua
.
ObjectIds
.
References
,
direction
=
ua
.
BrowseDirection
.
Both
,
nodeclassmask
=
ua
.
NodeClass
.
Unspecified
,
includesubtypes
=
True
):
pass
@
syncmethod
def
get_description
(
self
):
pass
@
syncmethod
def
get_variables
(
self
):
pass
class
Subscription
:
...
...
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