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
d843bb02
Commit
d843bb02
authored
Jul 19, 2020
by
oroulet
Committed by
oroulet
Jul 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add read_data_type_definition() to Node class
parent
b5f7f864
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
asyncua/common/node.py
asyncua/common/node.py
+10
-2
No files found.
asyncua/common/node.py
View file @
d843bb02
...
...
@@ -150,7 +150,15 @@ class Node:
result
=
await
self
.
read_attribute
(
ua
.
AttributeIds
.
NodeClass
)
return
result
.
Value
.
Value
async
def
get_description
(
self
):
async
def
read_data_type_definition
(
self
):
"""
get node class attribute of node
"""
result
=
await
self
.
read_attribute
(
ua
.
AttributeIds
.
DataTypeDefinition
)
return
result
.
Value
.
Value
async
def
read_description
(
self
):
"""
get description attribute class of node
"""
...
...
@@ -259,7 +267,7 @@ class Node:
Set an attribute of a node
attributeid is a member of ua.AttributeIds
datavalue is a ua.DataValue object
indexrange is a NumericRange (a string; e.g. "1" or "1:3".
indexrange is a NumericRange (a string; e.g. "1" or "1:3".
See https://reference.opcfoundation.org/v104/Core/docs/Part4/7.22/)
"""
attr
=
ua
.
WriteValue
()
...
...
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