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
ca545eb8
Commit
ca545eb8
authored
Mar 14, 2023
by
yogesh.m
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
624a3d06
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
asyncua_server.py
asyncua_server.py
+0
-3
opc_ua_receiver_config.yaml
opc_ua_receiver_config.yaml
+7
-7
opcua_receiver.py
opcua_receiver.py
+1
-1
No files found.
asyncua_server.py
View file @
ca545eb8
...
...
@@ -148,11 +148,8 @@ async def get_existing_hierarchy_array(client,node_objects):
existing_datatypes
.
append
(
str
(
identifier_name
)
+
"-"
+
str
(
24
))
else
:
existing_datatypes
.
append
(
str
(
identifier_name
)
+
"-"
+
str
(
datatype
.
_value_
))
return
identifier_array_existing
,
existing_datatypes
def
add_nodes
(
nodes_to_add
,
hierarchy
,
parent_key
=
None
):
for
key
in
hierarchy
:
if
(
key
!=
"hash"
and
key
!=
"namespace_idx"
):
...
...
opc_ua_receiver_config.yaml
View file @
ca545eb8
Configuration
:
endpoint_url = "opc.tcp://2.2.2.5:53531/myopc/free"
namespace_server ="http://klopc.com"
udp_hash_receiver_ip="2.2.2.5"
udp_hash_receiver_port=20002
udp_ip = "2.2.2.5"
udp_port = 20001
\ No newline at end of file
configuration
:
endpoint_url
:
opc.tcp://2.2.2.5:53531/myopc/free
namespace_server
:
http://klopc.com
udp_hash_receiver_ip
:
2.2.2.5
udp_hash_receiver_port
:
20002
udp_ip
:
2.2.2.5
udp_port
:
20001
\ No newline at end of file
opcua_receiver.py
View file @
ca545eb8
...
...
@@ -5,7 +5,7 @@ from asyncua_server import st
import
threading
import
yaml
yamlfile
=
open
(
"opc_ua_
transmitt
er_config.yaml"
)
yamlfile
=
open
(
"opc_ua_
receiv
er_config.yaml"
)
data
=
yaml
.
load
(
yamlfile
,
Loader
=
yaml
.
FullLoader
)
Endpoint_Url
=
data
[
"configuration"
][
"endpoint_url"
]
Namespace_Server
=
data
[
"configuration"
][
"namespace_server"
]
...
...
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