Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
ResearchAndDevelopment
crossecho
Commits
bc8d55cf
Commit
bc8d55cf
authored
Mar 16, 2020
by
mancini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure address port
parent
cc0c4544
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
crossecho.py
crossecho.py
+1
-1
lib/opc_interface.py
lib/opc_interface.py
+1
-1
No files found.
crossecho.py
View file @
bc8d55cf
...
...
@@ -31,7 +31,7 @@ def setup_command_argument_parser():
formatter_class
=
argparse
.
RawDescriptionHelpFormatter
,
description
=
"Record cross correlation statistics and offers it through OPC UA"
)
parser
.
add_argument
(
'--port'
,
help
=
'tcp port'
,
type
=
int
)
parser
.
add_argument
(
'--port'
,
help
=
'tcp port'
,
type
=
int
,
default
=
55555
)
return
parser
...
...
lib/opc_interface.py
View file @
bc8d55cf
...
...
@@ -82,7 +82,7 @@ def connect_to_server(url, port):
def
setup_server_metadata
(
server
=
None
,
port
=
55555
):
if
server
is
None
:
server
=
Server
()
server
.
set_endpoint
(
"opc.tcp://
localhost
:%d/LOFAR2.0/CROSSECHO"
%
port
)
server
.
set_endpoint
(
"opc.tcp://
0.0.0.0
:%d/LOFAR2.0/CROSSECHO"
%
port
)
server
.
set_server_name
(
"LOFAR2.0 Crosscorrelations statistic echo server (CROSSECHO)"
)
return
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