Examples of NikobusCommand


Examples of org.openhab.binding.nikobus.internal.core.NikobusCommand

          }

          NikobusModule m = allModules.get(nextModuleToRefresh);

          log.trace("Requesting scheduled status update for {}", m.getAddress());
          NikobusCommand cmd = m.getStatusRequestCommand();
          cmd.setWaitForSilence(true);
          try {
            sendCommand(cmd);
          } catch (Exception e) {
            log.error("Error occurred during scheduled status refresh.", e);
          }
View Full Code Here

Examples of org.openhab.binding.nikobus.internal.core.NikobusCommand

    if (command == OnOffType.ON && getAddress().length() == 8) {
      // Whenever the button receives an ON command,
      // we send a simulated button press to the Nikobus
      int times = (type == PressType.LONG) ? NikobusCommand.MAX_REPEAT
          : 1;
      binding.sendCommand(new NikobusCommand(getAddress(), times));
      binding.sendCommand(new NikobusCommand(END_OF_TRANSMISSION));
    }

    notifyModulesChanged(false, binding);
  }
View Full Code Here

Examples of org.openhab.binding.nikobus.internal.core.NikobusCommand

    }

    command.append(HIGH_BYTE);

    NikobusCommand cmd = new NikobusCommand(CRCUtil.appendCRC2(
        STATUS_CHANGE_CMD + CRCUtil.appendCRC(command.toString())));

    try {
      binding.sendCommand(cmd);
    } catch (Exception e) {
View Full Code Here

Examples of org.openhab.binding.nikobus.internal.core.NikobusCommand

  }

  @Override
  public NikobusCommand getStatusRequestCommand() {

    return new NikobusCommand(CRCUtil.appendCRC2(STATUS_REQUEST_CMD
        + CRCUtil.appendCRC(statusRequestGroup + address)),
        STATUS_RESPONSE + address, 2000);
  }
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.