Exemplo n.º 1
0
 def setUpClass(self):
     self.srv = Server()
     self.srv.set_endpoint('opc.tcp://localhost:%d' % port_num)
     add_server_methods(self.srv)
     self.srv.start()
     self.opc = self.srv
     self.discovery = Server()
     self.discovery.set_application_uri("urn:freeopcua:python:discovery")
     self.discovery.set_endpoint('opc.tcp://localhost:%d' % port_discovery)
     self.discovery.start()
Exemplo n.º 2
0
 def setUpClass(self):
     self.srv = Server()
     self.srv.set_endpoint('opc.tcp://localhost:%d' % port_num)
     add_server_methods(self.srv)
     self.srv.start()
     self.opc = self.srv
     self.discovery = Server()
     self.discovery.set_application_uri("urn:freeopcua:python:discovery")
     self.discovery.set_endpoint('opc.tcp://localhost:%d' % port_discovery)
     self.discovery.start()
Exemplo n.º 3
0
 def setUpClass(cls):
     cls.srv = Server()
     cls.srv.set_endpoint('opc.tcp://localhost:{0:d}'.format(port_num))
     add_server_methods(cls.srv)
     cls.srv.start()
     cls.opc = cls.srv
     cls.discovery = Server()
     cls.discovery.set_application_uri("urn:freeopcua:python:discovery")
     cls.discovery.set_endpoint('opc.tcp://localhost:{0:d}'.format(port_discovery))
     cls.discovery.start()
Exemplo n.º 4
0
 def setUpClass(cls):
     cls.srv = Server()
     cls.srv.set_endpoint('opc.tcp://127.0.0.1:{0:d}'.format(port_num))
     add_server_methods(cls.srv)
     cls.srv.start()
     cls.opc = cls.srv
     cls.discovery = Server()
     cls.discovery.set_application_uri("urn:freeopcua:python:discovery")
     cls.discovery.set_endpoint('opc.tcp://127.0.0.1:{0:d}'.format(port_discovery))
     cls.discovery.start()
    def setUpClass(self):
        # start our own server
        self.srv = Server()
        self.srv.set_endpoint("opc.tcp://*****:*****@localhost:%d" % port_num1)
        self.clt.connect()
        self.opc = self.clt

        # start anonymous client
        self.ro_clt = Client("opc.tcp://localhost:%d" % port_num1)
        self.ro_clt.connect()
Exemplo n.º 6
0
    def setUpClass(self):
        # start our own server
        self.srv = Server()
        self.srv.set_endpoint('opc.tcp://*****:*****@localhost:%d' % port_num1, timeout=10)
        self.clt.connect()
        self.opc = self.clt

        # start anonymous client
        self.ro_clt = Client('opc.tcp://localhost:%d' % port_num1)
        self.ro_clt.connect()
Exemplo n.º 7
0
    def setUpClass(self):
        # start our own server
        self.srv = Server()
        self.srv.set_endpoint('opc.tcp://*****:*****@localhost:%d' % port_num1, timeout=10)
        self.clt.connect()
        self.opc = self.clt

        # start anonymous client
        self.ro_clt = Client('opc.tcp://localhost:%d' % port_num1)
        self.ro_clt.connect()
Exemplo n.º 8
0
    def setUpClass(cls):
        # start our own server
        cls.srv = Server()
        cls.srv.set_endpoint('opc.tcp://*****:*****@localhost:{0:d}'.format(port_num1), timeout=10)
        cls.clt.connect()
        cls.opc = cls.clt

        # start anonymous client
        cls.ro_clt = Client('opc.tcp://localhost:{0:d}'.format(port_num1))
        cls.ro_clt.connect()
Exemplo n.º 9
0
    def setUpClass(cls):
        # start our own server
        cls.srv = Server()
        cls.srv.set_endpoint('opc.tcp://*****:*****@localhost:{0:d}'.format(port_num1), timeout=10)
        cls.clt.connect()
        cls.opc = cls.clt

        # start anonymous client
        cls.ro_clt = Client('opc.tcp://localhost:{0:d}'.format(port_num1))
        cls.ro_clt.connect()