Package com.dsi.ant.message.fromant
Class BroadcastDataMessage
java.lang.Object
com.dsi.ant.message.AntMessage
com.dsi.ant.message.fromant.AntMessageFromAnt
com.dsi.ant.message.fromant.DataMessage
com.dsi.ant.message.fromant.BroadcastDataMessage
Received when the master connected to sends broadcast data to the slave. The
slave does not acknowledge the reception of broadcast data.
- Since:
- 4.0
-
Field Summary
Fields inherited from class com.dsi.ant.message.fromant.DataMessage
LENGTH_STANDARD_PAYLOAD, OFFSET_PAYLOAD_START
Fields inherited from class com.dsi.ant.message.fromant.AntMessageFromAnt
mMessageContent
Fields inherited from class com.dsi.ant.message.AntMessage
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 Summary
ConstructorsModifierConstructorDescriptionprotected
BroadcastDataMessage
(byte[] messageContent) BroadcastDataMessage
(AntMessageParcel messageParcel) Parse message specific information from the given ANT message parcel. -
Method Summary
Modifier and TypeMethodDescriptionThe type of this message based on its message id and contents.Methods inherited from class com.dsi.ant.message.fromant.DataMessage
getExtendedData, getPayload, getStandardPayload, hasExtendedData, toString
Methods inherited from class com.dsi.ant.message.fromant.AntMessageFromAnt
createAntMessage, createAntMessage, createAntMessage, extractCorrectMessageContent, getMessageContent, getMessageId, toStringHeader
Methods inherited from class com.dsi.ant.message.AntMessage
equals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumber
-
Constructor Details
-
BroadcastDataMessage
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
-
BroadcastDataMessage
protected BroadcastDataMessage(byte[] messageContent)
-
-
Method Details
-
getMessageType
Description copied from class:AntMessageFromAnt
The type of this message based on its message id and contents.It is recommended to use this rather than the raw message ID.
- Specified by:
getMessageType
in classAntMessageFromAnt
- Returns:
- A message type corresponding to this message as defined in
MessageFromAntType
. - Since:
- 4.0
-