Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
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
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
osie
Commits
e20ef7a3
Commit
e20ef7a3
authored
May 17, 2024
by
Philipp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update opcua-server-fhi /minimal-server.py
parent
14afa67e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
opcua-server-fhi /minimal-server.py
opcua-server-fhi /minimal-server.py
+4
-2
No files found.
opcua-server-fhi /minimal-server.py
View file @
e20ef7a3
...
...
@@ -17,7 +17,6 @@ a('--ipv6', help='The IPv6 address on which the OPCUA Server runs', default="::"
a
(
'--ipv6-enabled'
,
help
=
'The IPv6 address check whether it is enabled or disabled'
,
default
=
"1"
)
a
(
'--port'
,
help
=
'The port on which the OPCUA Server runs'
,
default
=
"4840"
)
args
=
parser
.
parse_args
()
# ipv4 = args.ipv4
ipv6
=
args
.
ipv6
ipv6_enabled
=
args
.
ipv6_enabled
port
=
args
.
port
...
...
@@ -32,7 +31,10 @@ async def main():
# setup our server
server
=
Server
()
await
server
.
init
()
server
.
set_endpoint
(
"opc.tcp://0.0.0.0:4840/freeopcua/server/"
)
if
bool
(
int
(
ipv6_enabled
)):
server
.
set_endpoint
(
f"opc.tcp://[
{
ipv6
}
]:
{
port
}
/freeopcua/server/"
)
# set up our own namespace, not really necessary but should as spec
uri
=
"http://examples.freeopcua.github.io"
idx
=
await
server
.
register_namespace
(
uri
)
...
...
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