Examples of requestStatusFor()


Examples of org.openhab.binding.plcbus.internal.protocol.IPLCBusController.requestStatusFor()

    }

    IPLCBusController controller = PLCBusController.create(serialPortGateway);

    if (newState == UnDefType.UNDEF) {
      StatusResponse response = controller.requestStatusFor(config.getUnit());

      State status = (response.isUnitOn()) ? OnOffType.ON : OnOffType.OFF;
      this.eventPublisher.postUpdate(itemName, status);
    }
  }
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.