Package promauto.utils

Examples of promauto.utils.RpSerialPort.writeString()


         
      // Command - write and read string
      if (cmd[1].equals("str") || cmd[1].equals("s")) {
        RpSerialPort port = getPortForConsoleCommand(cmd);
        svcConsole.write(JRoboStrings.SVCSERIAL_WRITE_TO + port.getName()+": "+cmd[3]+"\n" );
        port.writeString(cmd[3]+"\n");
        Thread.sleep(500);
        svcConsole.write(JRoboStrings.SVCSERIAL_READ_FROM + port.getName()+": "+ port.readAllString() +"\n" );
      } else
     
      // Command - write and read hex
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.