Exemplo n.º 1
0
  /**
   * verifies the heat pump response after data has been updated
   *
   * @param response of heat pump
   * @return true if data set has been confirmed
   */
  public boolean setDataCheck(byte[] response) {
    try {
      verifyHeader(response);
    } catch (StiebelHeatPumpException e) {
      return false;
    }

    return true;
  }
Exemplo n.º 2
0
  /**
   * verifies the header of the heat pump response
   *
   * @param response of heat pump
   * @return true if header is valid
   */
  public boolean headerCheck(byte[] response) {
    try {
      verifyHeader(response);
    } catch (StiebelHeatPumpException e) {
      logger.debug("verification of response failed " + e.toString());
      return false;
    }

    return true;
  }