]> git.basschouten.com Git - openhab-addons.git/blob
2b4093958cc5a25322f8494f04fd41739191a9f0
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.loxone.internal;
14
15 /**
16  * Configuration of a Loxone Miniserver ({@link LxServerHandler})
17  *
18  * @author Pawel Pieczul - Initial contribution
19  *
20  */
21 public class LxBindingConfiguration {
22     /**
23      * Host address or IP of the Miniserver
24      */
25     public String host;
26     /**
27      * Port of web service of the Miniserver
28      */
29     public int port;
30     /**
31      * User name used to log into the Miniserver
32      */
33     public String user;
34     /**
35      * Password used to log into the Miniserver
36      */
37     public String password;
38     /**
39      * Authentication token acquired from the Miniserver
40      */
41     public String authToken;
42     /**
43      * Time in seconds between binding initialization and first connection attempt
44      */
45     public int firstConDelay;
46     /**
47      * Time in seconds between sending two consecutive keep-alive messages
48      */
49     public int keepAlivePeriod;
50     /**
51      * Time in seconds between failed websocket connect attempts
52      */
53     public int connectErrDelay;
54     /**
55      * Time to wait for Miniserver response to a request sent from the binding
56      */
57     public int responseTimeout;
58     /**
59      * Time in seconds between user login error as a result of wrong name/password or no authority and next connection
60      * attempt
61      */
62     public int userErrorDelay;
63     /**
64      * Time in seconds between connection close (as a result of some communication error) and next connection attempt
65      */
66     public int comErrorDelay;
67     /**
68      * Websocket client's max binary message size in kB
69      */
70     public int maxBinMsgSize;
71     /**
72      * Websocket client's max text message size in kB
73      */
74     public int maxTextMsgSize;
75     /**
76      * Authentication method (0-auto, 1-hash, 2-token)
77      */
78     public int authMethod;
79 }