Package net.wimpi.modbus.net

Examples of net.wimpi.modbus.net.TCPMasterConnection.connect()


        }
      }
      //2. Open the connection
      con = new TCPMasterConnection(addr);
      con.setPort(port);
      con.connect();


      if (Modbus.debug) System.out.println("Connected to " + addr.toString() + ":" + con.getPort());
      req = new WriteSingleRegisterRequest(ref, new SimpleRegister(count));
      req.setUnitID(0);
View Full Code Here


      }

      //2. Open the connection
      con = new TCPMasterConnection(addr);
      con.setPort(port);
      con.connect();

      if (Modbus.debug) System.out.println("Connected to " + addr.toString() + ":" + con.getPort());

      //3. Prepare the request
      req = new ReadInputDiscretesRequest(ref, count);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.