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

Examples of org.openhab.binding.zwave.internal.protocol.TransmissionState


  public boolean handleRequest(ZWaveController zController, SerialMessage lastSentMessage,
      SerialMessage incomingMessage) {
    logger.trace("Handle Message Send Data Request");

    int callbackId = incomingMessage.getMessagePayloadByte(0);
    TransmissionState status = TransmissionState.getTransmissionState(incomingMessage.getMessagePayloadByte(1));
    SerialMessage originalMessage = lastSentMessage;

    if (status == null) {
      logger.warn("Transmission state not found, ignoring.");
      return false;
    }

    logger.debug("CallBack ID = {}", callbackId);
    logger.debug(String.format("Status = %s (0x%02x)", status.getLabel(), status.getKey()));

    if (originalMessage == null || originalMessage.getCallbackId() != callbackId) {
      logger.warn("Already processed another send data request for this callback Id, ignoring.");
      return false;
    }
View Full Code Here

TOP

Related Classes of org.openhab.binding.zwave.internal.protocol.TransmissionState

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.