public class BroadcastDataMessage extends DataMessage
LENGTH_STANDARD_PAYLOAD, OFFSET_PAYLOAD_START
BITMASK_CHANNEL_NUMBER, FILLER_BYTE, OFFSET_CHANNEL_NUMBER, RAW_OFFSET_MESSAGE_CONTENT_START, RAW_OFFSET_MESSAGE_ID, RAW_OFFSET_MESSAGE_SIZE, SIZE_CHANNEL_NUMBER, SIZE_FILLER_BYTE
Constructor and Description |
---|
BroadcastDataMessage(AntMessageParcel messageParcel)
Parse message specific information from the given ANT message parcel.
|
Modifier and Type | Method and Description |
---|---|
MessageFromAntType |
getMessageType()
The type of this message based on its message id and contents.
|
getExtendedData, getPayload, hasExtendedData, toString
createAntMessage, createAntMessage, getMessageContent, getMessageId
equals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumber
public BroadcastDataMessage(AntMessageParcel messageParcel)
messageParcel
- Raw ANT message received form the ANT Radio Service.java.lang.IllegalArgumentException
- If the parcel is for the wrong message type.public MessageFromAntType getMessageType()
AntMessageFromAnt
It is recommended to use this rather than the raw message ID.
getMessageType
in class AntMessageFromAnt
MessageFromAntType
.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.