public class LynxKeepAliveCommand extends LynxStandardCommand<LynxAck>
COMMAND_NUMBER_ACK, COMMAND_NUMBER_DEBUG_LOG_LEVEL, COMMAND_NUMBER_DISCOVERY, COMMAND_NUMBER_DOWNLOAD_CHUNK, COMMAND_NUMBER_FAIL_SAFE, COMMAND_NUMBER_FIRST, COMMAND_NUMBER_GET_MODULE_LED_COLOR, COMMAND_NUMBER_GET_MODULE_LED_PATTERN, COMMAND_NUMBER_GET_MODULE_STATUS, COMMAND_NUMBER_KEEP_ALIVE, COMMAND_NUMBER_LAST, COMMAND_NUMBER_NACK, COMMAND_NUMBER_QUERY_INTERFACE, COMMAND_NUMBER_SET_MODULE_LED_COLOR, COMMAND_NUMBER_SET_MODULE_LED_PATTERN, COMMAND_NUMBER_SET_NEW_MODULE_ADDRESS, COMMAND_NUMBER_START_DOWNLOAD
ackOrNackReceived, isAckOrResponseReceived, nackReceived, response, responseOrNackReceived, retransmissionsRemaining
hasBeenTransmitted, messageNumber, module, nanotimeLastTransmit, payloadTimeWindow, referenceNumber, serialization
Constructor and Description |
---|
LynxKeepAliveCommand(LynxModule module,
boolean initialPing) |
Modifier and Type | Method and Description |
---|---|
void |
fromPayloadByteArray(byte[] rgb) |
int |
getCommandNumber() |
protected int |
getMsAwaitInterval() |
static int |
getStandardCommandNumber() |
boolean |
isResponseExpected()
Returns whether this message will generate a response message in return.
|
protected void |
noteAttentionRequired() |
byte[] |
toPayloadByteArray() |
isStandardCommandNumber, isStandardPacketId, isStandardResponseNumber
getResponseClass
awaitAckResponseOrNack, awaitAndRetransmit, getMsRetransmissionInterval, getNackReceived, hasBeenAcknowledged, isAckable, isAckOrResponseReceived, isNackReceived, isRetransmittable, noteRetransmission, onAckReceived, onNackReceived, onPretendTransmit, onResponseReceived, pretendFinish, responseOrThrow, send, sendReceive, setUnretransmittable, throwIfNack, throwNackForUnsupportedCommand, usePretendResponseIfRealModuleDoesntSupport
acquireNetworkLock, forgetSerialization, getDestModuleAddress, getMessageNumber, getModule, getModuleAddress, getNanotimeLastTransmit, getPayloadTimeWindow, getReferenceNumber, getSerialization, hasBeenTransmitted, invokeStaticNullaryMethod, isAck, isNack, isResponse, loadFromSerialization, noteHasBeenTransmitted, releaseNetworkLock, resetModulePingTimer, setMessageNumber, setModule, setNanotimeLastTransmit, setPayloadTimeWindow, setReferenceNumber, setSerialization
public LynxKeepAliveCommand(LynxModule module, boolean initialPing)
public static int getStandardCommandNumber()
public int getCommandNumber()
getCommandNumber
in class LynxMessage
protected void noteAttentionRequired()
noteAttentionRequired
in class LynxRespondable<LynxAck>
public byte[] toPayloadByteArray()
toPayloadByteArray
in class LynxMessage
public boolean isResponseExpected()
LynxMessage
isResponseExpected
in class LynxMessage
public void fromPayloadByteArray(byte[] rgb)
fromPayloadByteArray
in class LynxMessage
protected int getMsAwaitInterval()
getMsAwaitInterval
in class LynxRespondable<LynxAck>