]> git.basschouten.com Git - openhab-addons.git/blob
4a4dd92791185eb8710dfa938084f2ea7af966d6
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.openthermgateway.internal;
14
15 /**
16  * The {@link CodeType} field is not part of OpenTherm specification, but added by OpenTherm Gateway.
17  * It can be any of the following:
18  *
19  * T: Message received from the thermostat
20  * B: Message received from the boiler
21  * R: Request sent to the boiler
22  * A: Response returned to the thermostat
23  * E: Parity or stop bit error
24  *
25  * @author Arjen Korevaar - Initial contribution
26  * @author James Melville - Introduced code filtering functionality
27  */
28 public enum CodeType {
29     /**
30      * Message received from the thermostat
31      */
32     T,
33     /**
34      * Message received from the boiler
35      */
36     B,
37     /**
38      * Request sent to the boiler from OTGW, only present if value modified by OTGW
39      */
40     R,
41     /**
42      * Response returned to the thermostat from OTGW, only present if value modified by OTGW
43      */
44     A,
45     /**
46      * Parity or stop bit error
47      */
48     E
49 }