Package net.wimpi.modbusme.facade

Examples of net.wimpi.modbusme.facade.ModbusSerialMaster.writeCoil()


      //3. Create the master facade
      msm = new ModbusSerialMaster(params);
      msm.connect();

      do {
        if (msm.writeCoil(slaveId, 4, true) == true) {
          System.out.println("Set output 5 to true");
        } else {
          System.err.println("Error setting slave " + slaveId + " output 5");
        }
        BitVector coils = msm.readCoils(slaveId, 0, 8);
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.