Package com.tinkerforge.BrickletDualRelay

Examples of com.tinkerforge.BrickletDualRelay.State


   */
  @Override
  public void fetchSwitchState() {
    OnOffValue switchValue = OnOffValue.UNDEF;
    try {
      State state = getMbrick().getTinkerforgeDevice().getState();
      if (relayNum == 1) {
        switchValue = (state.relay1) ? OnOffValue.ON : OnOffValue.OFF;
      } else {
        switchValue = (state.relay2) ? OnOffValue.ON : OnOffValue.OFF;
      }
View Full Code Here

TOP

Related Classes of com.tinkerforge.BrickletDualRelay.State

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.