Class BroadcastDataMessageFromHost


public final class BroadcastDataMessageFromHost extends DataMessageFromHost
The default mode used to transmit data between devices and will be sent every channel period. When sent, no acknowledgment of reception is expected.
Since:
4.0
  • Constructor Details

    • BroadcastDataMessageFromHost

      public BroadcastDataMessageFromHost(byte[] payload)
      Constructs the message from the message bytes.
      Parameters:
      payload - The received message bytes.
      Since:
      4.0
  • Method Details

    • getPayload

      public byte[] getPayload()
      Description copied from class: DataMessageFromHost
      Gets the payload of the data message.
      Specified by:
      getPayload in class DataMessageFromHost
      Returns:
      The payload of the data message.
      Since:
      4.0
    • getMessageContent

      public byte[] getMessageContent(int channelNumber, int networkNumber)
      Description copied from class: AntMessageFromHost
      The content of the message with specified channel number and network number set if required.
      Specified by:
      getMessageContent in class AntMessageFromHost
      Parameters:
      channelNumber - Written to the channel number byte if required
      networkNumber - Written to the network number byte if required
      Returns:
      Message content raw byte array.
      Since:
      4.0
    • getMessageType

      public MessageFromHostType getMessageType()
      Description copied from class: AntMessageFromHost
      The unique type of this message based on its message id, contents, and intended channel type.

      It is recommended to use this rather than the raw message ID.

      Specified by:
      getMessageType in class AntMessageFromHost
      Returns:
      The type of message returned by the host.
      Since:
      4.0