]> git.basschouten.com Git - openhab-addons.git/blob
8d9579a50993a4b035584e927b57802acf4ebc13
[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      * http://www.elv.de/controller.aspx?cid=824&detail=10&detail2=3484
31      */
32     public Integer port;
33
34     /** The refresh interval in seconds which is used to poll given MAX! Cube */
35     public Integer refreshInterval;
36
37     /** The unique serial number for a device */
38     public String serialNumber;
39
40     /**
41      * If set to true, the binding will leave the connection to the cube open
42      * and just request new informations. This allows much higher poll rates and
43      * causes less load than the non-exclusive polling but has the drawback that
44      * no other apps (i.E. original software) can use the cube while this
45      * binding is running.
46      */
47     public boolean exclusive = false;
48
49     /**
50      * in exclusive mode, how many requests are allowed until connection is
51      * closed and reopened
52      */
53     public Integer maxRequestsPerConnection;
54
55     public Integer cubeReboot;
56
57     /** NTP Server 1 hostname */
58     public String ntpServer1;
59
60     /** NTP Server 2 hostname */
61     public String ntpServer2;
62 }