Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-cloning
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yogesh.m
opcua-cloning
Commits
939374c6
Commit
939374c6
authored
Mar 09, 2023
by
yogesh.m
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b0d222d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
hash_sender.py
hash_sender.py
+10
-8
No files found.
hash_sender.py
View file @
939374c6
...
@@ -24,20 +24,22 @@ async def create_node_hierarchy(client, node_objects):
...
@@ -24,20 +24,22 @@ async def create_node_hierarchy(client, node_objects):
children_nodes
=
await
node
.
get_children
()
children_nodes
=
await
node
.
get_children
()
identifier
=
str
(
children_nodes
[
0
]
.
nodeid
.
Identifier
)
if
children_nodes
else
""
identifier
=
str
(
children_nodes
[
0
]
.
nodeid
.
Identifier
)
if
children_nodes
else
""
node_class
=
await
sub_obj
.
read_node_class
()
node_class
=
await
sub_obj
.
read_node_class
()
if
(
identifier
not
in
str
(
sub_obj
)):
if
(
identifier
not
in
str
(
sub_obj
)):
child_disp_name
=
await
sub_obj
.
read_display_name
()
child_disp_name
=
await
sub_obj
.
read_display_name
()
node_hierarchy
[
child_disp_name
.
Text
]
=
await
create_node_hierarchy
(
client
,
children_nodes
)
identifier_name
=
sub_obj
.
nodeid
.
Identifier
node_hierarchy
[
child_disp_name
.
Text
][
"name"
]
=
child_disp_name
.
Text
node_hierarchy
[
identifier_name
]
=
await
create_node_hierarchy
(
client
,
children_nodes
)
node_hierarchy
[
identifier_name
][
"name"
]
=
child_disp_name
.
Text
if
(
node_class
.
_name_
==
"Variable"
):
if
(
node_class
.
_name_
==
"Variable"
):
datatype
=
await
sub_obj
.
read_data_type_as_variant_type
()
datatype
=
await
sub_obj
.
read_data_type_as_variant_type
()
node_hierarchy
[
child_disp_name
.
Text
][
"datatype"
]
=
datatype
.
_value_
node_hierarchy
[
identifier_name
][
"datatype"
]
=
datatype
.
_value_
else
:
else
:
disp_name
=
await
sub_obj
.
read_display_name
()
disp_name
=
await
sub_obj
.
read_display_name
()
node_hierarchy
[
disp_name
.
Text
]
=
{}
identifier_name
=
sub_obj
.
nodeid
.
Identifier
node_hierarchy
[
disp_name
.
Text
][
"name"
]
=
disp_name
.
Text
node_hierarchy
[
identifier_name
]
=
{}
node_hierarchy
[
identifier_name
][
"name"
]
=
disp_name
.
Text
if
(
node_class
.
_name_
==
"Variable"
):
if
(
node_class
.
_name_
==
"Variable"
):
datatype
=
await
sub_obj
.
read_data_type_as_variant_type
()
datatype
=
await
sub_obj
.
read_data_type_as_variant_type
()
node_hierarchy
[
disp_name
.
Text
][
"datatype"
]
=
datatype
.
_value_
node_hierarchy
[
identifier_name
][
"datatype"
]
=
datatype
.
_value_
return
node_hierarchy
return
node_hierarchy
async
def
get_send_hash
():
async
def
get_send_hash
():
...
...
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