]> git.basschouten.com Git - openhab-addons.git/blob
bc275b5decc1e1d9dacd7c61cc02c4800e1f728b
[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.dscalarm.internal.config;
14
15 /**
16  * Configuration class for the TCP Server bridge, used to connect to the DSC Alarm system.
17  *
18  * @author Russell Stephens - Initial contribution
19  */
20
21 public class TCPServerBridgeConfiguration {
22
23     // TCP Server Bridge Thing constants
24     public static final String IP_ADDRESS = "ipAddress";
25     public static final String PORT = "port";
26     public static final String PASSWORD = "password";
27     public static final String CONNECTION_TIMEOUT = "connectionTimeout";
28     public static final String POLL_PERIOD = "pollPeriod";
29     public static final String PROTOCOL = "protocol";
30
31     /**
32      * The IP address of the TCP Server
33      */
34     public String ipAddress;
35
36     /**
37      * The port number of the TCP Server
38      */
39     public Integer port;
40
41     /**
42      * The Socket connection timeout for the TCP Server
43      */
44     public Integer connectionTimeout;
45
46     /**
47      * The Panel Poll Period. Can be set in range 1-15 minutes. Default is 1 minute;
48      */
49     public Integer pollPeriod;
50
51     /**
52      * The Protocol Type - 1 for IT-100 API or 2 for Envisalink TPI.
53      */
54     public Integer protocol;
55 }