类 SerialPortHandle

  • 所有已实现的接口:
    ConnectHandle

    public class SerialPortHandle
    extends java.lang.Object
    implements ConnectHandle
    inlaylink 20240510
    • 构造器概要

      构造器 
      构造器 说明
      SerialPortHandle​(java.lang.String port, int baud)
      Instantiates a new Serial port handle.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      boolean connect()
      连接读写器
      void disconnect()
      断开连接
      boolean isConnected()
      读写器连接状态
      void onReceive​(Consumer<byte[]> consumer)
      数据接收
      void send​(byte[] bytes)
      发送数据
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • SerialPortHandle

        public SerialPortHandle​(java.lang.String port,
                                int baud)
        Instantiates a new Serial port handle.
        参数:
        port - the port
        baud - the baud