Class ChannelEventMessage


public class ChannelEventMessage extends AntMessageFromAnt
Defines values for reading an MessageFromAntType.CHANNEL_EVENT type message.
Since:
4.0
  • Field Details

    • SIZE_EVENT_CODE

      public static final int SIZE_EVENT_CODE
      The number of bytes used for the event code
      Since:
      4.0
      See Also:
    • OFFSET_EVENT_CODE

      public static final int OFFSET_EVENT_CODE
      The message content offset to the channel event code (EventCode).
      Since:
      4.0
      See Also:
  • Constructor Details

    • ChannelEventMessage

      public ChannelEventMessage(AntMessageParcel messageParcel)
      Parse message specific information from the given ANT message parcel.
      Parameters:
      messageParcel - Raw ANT message received form the ANT Radio Service.
      Throws:
      IllegalArgumentException - If the parcel is for the wrong message type.
      Since:
      4.0
    • ChannelEventMessage

      protected ChannelEventMessage(byte[] messageContent)
      Parse Channel Event data from the given ANT message content.
      Parameters:
      messageContent - Raw content of an ANT serial message
  • Method Details