* @return the serial message
* @author Chris Jackson
*/
public SerialMessage setInterval(int interval) {
logger.debug("NODE {}: Creating new message for application command WAKE_UP_INTERVAL_SET to {}", this.getNode().getNodeId(), interval);
SerialMessage result = new SerialMessage(this.getNode().getNodeId(), SerialMessageClass.SendData, SerialMessageType.Request, SerialMessageClass.ApplicationCommandHandler, SerialMessagePriority.Get);
byte[] newPayload = { (byte) this.getNode().getNodeId(),
6,
(byte) getCommandClass().getKey(),
(byte) WAKE_UP_INTERVAL_SET,
(byte)(( interval >> 16 ) & 0xff),
(byte)(( interval >> 8 ) & 0xff),
(byte)( interval & 0xff ),
(byte) getController().getOwnNodeId()};
result.setMessagePayload(newPayload);
return result;
}