Examples of SerialMessage


Examples of org.openhab.binding.zwave.internal.protocol.SerialMessage

  public SerialMessage doRequestStart(boolean highPower) {
    logger.debug("Setting controller into INCLUSION mode.");

    // Queue the request
    SerialMessage newMessage = new SerialMessage(SerialMessage.SerialMessageClass.AddNodeToNetwork, SerialMessage.SerialMessageType.Request,
        SerialMessage.SerialMessageClass.AddNodeToNetwork, SerialMessage.SerialMessagePriority.High);
    byte[] newPayload = { (byte) ADD_NODE_ANY, (byte)255 };
    if(highPower == true)
      newPayload[0] |= OPTION_HIGH_POWER;

      newMessage.setMessagePayload(newPayload);
      return newMessage;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.