Examples of SwegonVentilationException


Examples of org.openhab.binding.swegonventilation.internal.SwegonVentilationException

    if (socket == null) {
      try {
        socket = new DatagramSocket(port);
        logger.debug("Swegon ventilation UDP message listener started");
      } catch (SocketException e) {
        throw new SwegonVentilationException(e);
      }
    }
  }
View Full Code Here

Examples of org.openhab.binding.swegonventilation.internal.SwegonVentilationException

      return Arrays.copyOfRange(packet.getData(), 0,
          packet.getLength() - 1);

    } catch (SocketException e) {

      throw new SwegonVentilationException(e);

    } catch (IOException e) {

      throw new SwegonVentilationException(e);
    }

  }
View Full Code Here

Examples of org.openhab.binding.swegonventilation.internal.SwegonVentilationException

          data[j] = message[j];

        return data;

      } else {
        throw new SwegonVentilationException("CRC does not match");
      }

    } catch (InterruptedException e) {

      throw new SwegonVentilationException(e);
    }

  }
View Full Code Here

Examples of org.openhab.binding.swegonventilation.internal.SwegonVentilationException

      case (byte) 0x73:
        return parseMessage73(d);
      }

    } else {
      throw new SwegonVentilationException("Illegal data received, first byte mismatch!");
    }

    return null;
  }
View Full Code Here

Examples of org.openhab.binding.swegonventilation.internal.SwegonVentilationException

      in = serialPort.getInputStream();

      logger.debug("Swegon ventilation Serial Port message listener started");

    } catch (Exception e) {
      throw new SwegonVentilationException(e);
    }
  }
View Full Code Here

Examples of org.openhab.binding.swegonventilation.internal.SwegonVentilationException

                  data[j] = message[j];

                return data;

              } else {
                throw new SwegonVentilationException(
                    "CRC does not match");
              }
            }
          }

        }
      }
    } catch (IOException e) {
      throw new SwegonVentilationException(
          "Error occured while receiving data", e);
    }

    return null;
  }
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.