Commit bc8d55cf authored by Mattia Mancini's avatar Mattia Mancini

Configure address port

parent cc0c4544
...@@ -31,7 +31,7 @@ def setup_command_argument_parser(): ...@@ -31,7 +31,7 @@ def setup_command_argument_parser():
formatter_class=argparse.RawDescriptionHelpFormatter, formatter_class=argparse.RawDescriptionHelpFormatter,
description="Record cross correlation statistics and offers it through OPC UA") 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 return parser
......
...@@ -82,7 +82,7 @@ def connect_to_server(url, port): ...@@ -82,7 +82,7 @@ def connect_to_server(url, port):
def setup_server_metadata(server=None, port=55555): def setup_server_metadata(server=None, port=55555):
if server is None: if server is None:
server = Server() 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)") server.set_server_name("LOFAR2.0 Crosscorrelations statistic echo server (CROSSECHO)")
return server return server
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment