Commit bc8d55cf authored by Mattia Mancini's avatar Mattia Mancini

Configure address port

parent cc0c4544
......@@ -31,7 +31,7 @@ def setup_command_argument_parser():
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
......@@ -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://" % port)
server.set_server_name("LOFAR2.0 Crosscorrelations statistic echo server (CROSSECHO)")
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