Package org.openhab.binding.zwave.internal.protocol.serialmessage

Examples of org.openhab.binding.zwave.internal.protocol.serialmessage.EnableSucMessageClass


        this.sucID = ((GetSucNodeIdMessageClass)processor).getSucNodeId();
       
        // If we want to be the SUC, enable it here
        if(this.setSUC == true && this.sucID == 0) {
          // We want to be SUC
          this.enqueue(new EnableSucMessageClass().doRequest(EnableSucMessageClass.SUCType.SERVER));
          this.enqueue(new SetSucNodeMessageClass().doRequest(this.ownNodeId, SetSucNodeMessageClass.SUCType.SERVER));
        }
        else if(this.setSUC == false && this.sucID == this.ownNodeId) {
          // We don't want to be SUC, but we currently are!
          // Disable SERVER functionality, and set the node to 0
          this.enqueue(new EnableSucMessageClass().doRequest(EnableSucMessageClass.SUCType.NONE));
          this.enqueue(new SetSucNodeMessageClass().doRequest(this.ownNodeId, SetSucNodeMessageClass.SUCType.NONE));
        }
        this.enqueue(new GetControllerCapabilitiesMessageClass().doRequest());
        break;
      case SerialApiGetCapabilities:
View Full Code Here

TOP

Related Classes of org.openhab.binding.zwave.internal.protocol.serialmessage.EnableSucMessageClass

Copyright © 2018 www.massapicom. 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.