]> git.basschouten.com Git - openhab-addons.git/blob
e50f0a64f433caccd7dbc0aa012952fdc9fa5839
[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.caddx.internal.config;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.caddx.internal.CaddxProtocol;
18
19 /**
20  * Configuration class for the Caddx RS232 Serial interface bridge.
21  *
22  * @author Georgios Moutsos - Initial contribution
23  */
24
25 @NonNullByDefault
26 public class CaddxBridgeConfiguration {
27
28     // Caddx Bridge Thing constants
29     public static final String PROTOCOL = "protocol";
30     public static final String SERIAL_PORT = "serialPort";
31     public static final String BAUD = "baud";
32
33     private CaddxProtocol protocol = CaddxProtocol.Binary;
34     private @Nullable String serialPort;
35     private int baudrate = 9600;
36
37     public CaddxProtocol getProtocol() {
38         return protocol;
39     }
40
41     public @Nullable String getSerialPort() {
42         return serialPort;
43     }
44
45     public int getBaudrate() {
46         return baudrate;
47     }
48 }