Package org.openhab.binding.k8055

Examples of org.openhab.binding.k8055.k8055BindingProvider


            "Failed to read digital inputs from hardware");
      }

      for (k8055BindingProvider provider : this.providers) {
        for (String itemName : provider.getItemNames()) {
          k8055BindingConfig config = provider
              .getItemConfig(itemName);
          if (IOType.DIGITAL_IN.equals(config.ioType)) {
            boolean newstate = (inputs & (1 << (config.ioNumber - 1))) != 0;
            boolean oldstate = (lastDigitalInputs & (1 << (config.ioNumber - 1))) != 0;
View Full Code Here


   * @{inheritDoc
   */
  @Override
  protected void internalReceiveCommand(String itemName, Command command) {
    logger.debug("Received command for: " + itemName + " - " + command);
    k8055BindingConfig itemConfig = getConfigForItemName(itemName);

    try {
      if (itemConfig.ioType == IOType.DIGITAL_OUT) {
        logger.debug("Updating hardware Digital output: "
            + itemConfig.ioNumber);
View Full Code Here

TOP

Related Classes of org.openhab.binding.k8055.k8055BindingProvider

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.