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
76ecbee6
Commit
76ecbee6
authored
Mar 09, 2023
by
yogesh.m
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c842b417
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
hash_sender.py
hash_sender.py
+3
-0
No files found.
hash_sender.py
View file @
76ecbee6
...
...
@@ -29,6 +29,7 @@ async def create_node_hierarchy(client, node_objects):
identifier_name
=
sub_obj
.
nodeid
.
Identifier
node_hierarchy
[
identifier_name
]
=
await
create_node_hierarchy
(
client
,
children_nodes
)
node_hierarchy
[
identifier_name
][
"name"
]
=
child_disp_name
.
Text
node_hierarchy
[
identifier_name
][
"type"
]
=
node_class
.
_value_
if
(
node_class
.
_name_
==
"Variable"
):
datatype
=
await
sub_obj
.
read_data_type_as_variant_type
()
node_hierarchy
[
identifier_name
][
"datatype"
]
=
datatype
.
_value_
...
...
@@ -37,6 +38,7 @@ async def create_node_hierarchy(client, node_objects):
identifier_name
=
sub_obj
.
nodeid
.
Identifier
node_hierarchy
[
identifier_name
]
=
{}
node_hierarchy
[
identifier_name
][
"name"
]
=
disp_name
.
Text
node_hierarchy
[
identifier_name
][
"type"
]
=
node_class
.
_value_
if
(
node_class
.
_name_
==
"Variable"
):
datatype
=
await
sub_obj
.
read_data_type_as_variant_type
()
node_hierarchy
[
identifier_name
][
"datatype"
]
=
datatype
.
_value_
...
...
@@ -55,6 +57,7 @@ async def get_send_hash():
node_hierarchy
[
"hash"
]
=
hash
(
str
(
node_hierarchy
))
json_hierarchy
=
json
.
dumps
(
node_hierarchy
)
hierarchy
=
pickle
.
dumps
(
json_hierarchy
)
print
(
json_hierarchy
)
UDPClientSocket
.
sendto
(
hierarchy
,
serverAddressPort
)
def
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