Package org.openhab.binding.swegonventilation.internal

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


      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

          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

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

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

    return null;
  }
View Full Code Here

      in = serialPort.getInputStream();

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

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

                  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

Related Classes of org.openhab.binding.swegonventilation.internal.SwegonVentilationException

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.