/** * Copyright (c) 2010-2016 by the respective copyright holders. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org.openhab.binding.maxcul.internal.messages; /** * Wakeup message * * @author Paul Hampson (cyclingengineer) * @since 1.6.0 */ public class WakeupMsg extends BaseMsg { final private int WAKEUP_MSG_PAYLOAD_LEN = 1; public WakeupMsg(byte msgCount, byte msgFlag, byte groupId, String srcAddr, String dstAddr) { super(msgCount, msgFlag, MaxCulMsgType.WAKEUP, groupId, srcAddr, dstAddr); byte[] payload = new byte[WAKEUP_MSG_PAYLOAD_LEN]; payload[0] = 0x3f; // no idea what this means, just always 0x3f? // suspected to be number of seconds device is awake // for? super.appendPayload(payload); } public WakeupMsg(String rawmsg) { super(rawmsg); } }