public final class SetShortNetworkKeyMessage extends SetNetworkKeyMessage
Modifier and Type | Field and Description |
---|---|
static int |
LENGTH_NETWORK_KEY_BYTES
The valid length in bytes of the network key for this message.
|
OFFSET_NETWORK_KEY, OFFSET_NETWORK_NUMBER, SIZE_NETWORK_NUMBER
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 |
---|
SetShortNetworkKeyMessage(byte[] networkKey)
Constructs the message to contain the provided network key.
|
Modifier and Type | Method and Description |
---|---|
MessageFromHostType |
getMessageType()
The unique type of this message based on its message id, contents, and intended channel
type.
|
getMessageContent, getRawNetworkKey, toString
createAntMessage, getMessageContent, getMessageContent, getMessageId, getRawMessage
equals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumber
public static final int LENGTH_NETWORK_KEY_BYTES
public SetShortNetworkKeyMessage(byte[] networkKey)
networkKey
- The network key that is to be assigned to a network
number.java.lang.IllegalArgumentException
- Occurs when received an invalid network
key byte array (null or invalid length)public MessageFromHostType getMessageType()
AntMessageFromHost
It is recommended to use this rather than the raw message ID.
getMessageType
in class AntMessageFromHost
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.