if (simulateHeatPump == true) {
connector = new NibeHeatPumpSimulator();
} else if (serialPort != null) {
connector = new NibeHeatPumpSerialConnector(serialPort);
} else {
connector = new NibeHeatPumpUDPConnector(udpPort);
}
try {
connector.connect();
} catch (NibeHeatPumpException e) {