]> git.basschouten.com Git - openhab-addons.git/blob
3d59d0e2c6adb08f0dcdbdf18d61ebcfb3a126f3
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.nibeheatpump.internal.config;
14
15 /**
16  * Configuration class for {@link NibeHeatPumpBinding} device.
17  *
18  *
19  * @author Pauli Anttila - Initial contribution
20  */
21 public class NibeHeatPumpConfiguration {
22     public String hostName;
23     public int port;
24     public int readCommandsPort;
25     public int writeCommandsPort;
26     public String serialPort;
27     public int refreshInterval;
28     public boolean enableReadCommands;
29     public boolean enableWriteCommands;
30     public boolean sendAckToMODBUS40;
31     public boolean sendAckToRMU40;
32     public boolean sendAckToSMS40;
33     public String enableWriteCommandsToRegisters;
34     public int throttleTime;
35
36     @Override
37     public String toString() {
38         String str = "";
39
40         str += "hostName = " + hostName;
41         str += ", port = " + port;
42         str += ", readCommandsPort = " + readCommandsPort;
43         str += ", writeCommandsPort = " + writeCommandsPort;
44         str += ", serialPort = " + serialPort;
45         str += ", refreshInterval = " + refreshInterval;
46         str += ", enableReadCommands = " + enableReadCommands;
47         str += ", enableWriteCommands = " + enableWriteCommands;
48         str += ", sendAckToMODBUS40 = " + sendAckToMODBUS40;
49         str += ", sendAckToRMU40 = " + sendAckToRMU40;
50         str += ", sendAckToSMS40 = " + sendAckToSMS40;
51         str += ", enableWriteCommandsToRegisters = " + enableWriteCommandsToRegisters;
52         str += ", throttleTime = " + throttleTime;
53
54         return str;
55     }
56 }