public class AckMessage extends java.lang.Object implements Message
Modifier and Type | Field and Description |
---|---|
protected byte |
type
Contains the Ack message type
|
Constructor and Description |
---|
AckMessage(byte type,
Atmel origin)
Creates an AckMessage with its type and origin.
|
Modifier and Type | Method and Description |
---|---|
Atmel |
getOrigin()
Get the atmel chip the ack message originated from
|
byte[] |
getPayload()
Get the message payload excluding the type
|
byte |
getType()
Get the type value of the message
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPayloadBytesCount, getTotalBytesCount, getTotalBytesSum
public AckMessage(byte type, Atmel origin)
type
- the type of the ack message.origin
- the atmel corresponding to the origin of the message.public Atmel getOrigin()
public byte getType()
Message
public byte[] getPayload()
Message
getPayload
in interface Message