Class SerialMessage

All Implemented Interfaces:
Message

public class SerialMessage extends AbstractMRMessage
Contains the data payload of a serial packet.

Note that only the payload, not the header or trailer, nor the padding DLE characters are included. These are added during transmission.

  • Field Details

  • Constructor Details

    • SerialMessage

      public SerialMessage(int l)
    • SerialMessage

      public SerialMessage(String m, int l)
      This ctor interprets the String as the exact sequence to send, byte-for-byte.
      Parameters:
      m - message string.
      l - response length.
    • SerialMessage

      @Deprecated(since="5.13.5", forRemoval=true) public SerialMessage(byte[] a, int l)
      Deprecated, for removal: This API element is subject to removal in a future version.
      5.13.5, unused, requires further development.
      This ctor interprets the byte array as a sequence of characters to send.
      Parameters:
      a - Array of bytes to send
      l - response length
  • Method Details