]> git.basschouten.com Git - openhab-addons.git/blob
7f18eb534f1e8cbca984bc410df6de8772163e74
[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.max.internal.config;
14
15 import org.openhab.binding.max.internal.MaxBindingConstants;
16
17 /**
18  * Configuration class for {@link MaxBindingConstants} bridge used to connect to the
19  * maxCube device.
20  *
21  * @author Marcel Verpaalen - Initial contribution
22  */
23 public class MaxCubeBridgeConfiguration {
24
25     /** The IP address of the MAX! Cube LAN gateway */
26     public String ipAddress;
27
28     /**
29      * The port of the MAX! Cube LAN gateway as provided at
30      * <a href="http://www.elv.de/controller.aspx?cid=824&detail=10&detail2=3484">
31      * http://www.elv.de/controller.aspx?cid=824&amp;detail=10&amp;detail2=3484</a>
32      */
33     public Integer port;
34
35     /** The refresh interval in seconds which is used to poll given MAX! Cube */
36     public Integer refreshInterval;
37
38     /** The unique serial number for a device */
39     public String serialNumber;
40
41     /**
42      * If set to true, the binding will leave the connection to the cube open
43      * and just request new informations. This allows much higher poll rates and
44      * causes less load than the non-exclusive polling but has the drawback that
45      * no other apps (i.E. original software) can use the cube while this
46      * binding is running.
47      */
48     public boolean exclusive = false;
49
50     /**
51      * in exclusive mode, how many requests are allowed until connection is
52      * closed and reopened
53      */
54     public Integer maxRequestsPerConnection;
55
56     public Integer cubeReboot;
57
58     /** NTP Server 1 hostname */
59     public String ntpServer1;
60
61     /** NTP Server 2 hostname */
62     public String ntpServer2;
63 }