Package net.wimpi.modbus.facade

Examples of net.wimpi.modbus.facade.ModbusSerialMaster.disconnect()


            System.out.print("  " + n + "= " + regs[n]);
          }
          System.out.println();
        } else {
          System.out.println("Registers: null");
          msm.disconnect();
          System.exit(-1);
        }
        while (System.in.available() > 0) {
          inChar = System.in.read();
          if ((inChar == 's') || (inChar == 'S')) {
View Full Code Here


      } while (!finished);
    } catch (Exception e) {
      System.err.println("SerialFacadeTest driver: " + e);
      e.printStackTrace();
    }
    msm.disconnect();
  }

  private static void printUsage() {
    System.out.println("java net.wimpi.modbus.cmd.SerialAITest <portname [String]>  <Unit Address [int8]>");
  }//printUsage
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.