Class IEEE802154Message

All Implemented Interfaces:
Message
Direct Known Subclasses:
XBeeMessage

Contains the data payload of an IEEE 802.15.4 packet.
  • Field Details

  • Constructor Details

    • IEEE802154Message

      protected IEEE802154Message()
      Suppress the default ctor, as the length must always be specified
    • IEEE802154Message

      public IEEE802154Message(int l)
    • IEEE802154Message

      public IEEE802154Message(String m, int l)
      This ctor interprets the String as the exact sequence to send, byte-for-byte.
      Parameters:
      m - msg to send
      l - length of expected response (not used)
    • IEEE802154Message

      @Deprecated(since="5.13.5", forRemoval=true) public IEEE802154Message(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 - length of expected response
  • Method Details

    • checkParity

      public boolean checkParity()
      Check whether the message has a valid parity IEEE 802.15.4 messages have a two byte parity.
      Returns:
      true if parity is valid
    • setParity

      public void setParity()
    • setResponseLength

      public void setResponseLength(int l)
    • getResponseLength

      public int getResponseLength()