]> git.basschouten.com Git - openhab-addons.git/blob
9acb3d22bcb0dae197cc2fabc1b0e9a1d9fcc088
[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.gpio.internal.configuration;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The {@link PigpioConfiguration} class contains fields mapping thing configuration parameters.
20  *
21  * @author Nils Bauer - Initial contribution
22  */
23 @NonNullByDefault
24 public class PigpioConfiguration {
25
26     /**
27      * Network address of the raspberry pi
28      */
29     public @Nullable String host;
30
31     /**
32      * Port of pigpio on the remote raspberry pi
33      */
34     public int port = 8888;
35
36     /**
37      * Interval to send heartbeat checks
38      */
39     public int heartBeatInterval = 60000;
40
41     /**
42      * Input channel action on connect
43      * (First connect after INITIALIATION)
44      */
45     public @Nullable String inputConnectAction;
46
47     /**
48      * Input channel action on reconnect
49      */
50     public @Nullable String inputReconnectAction;
51
52     /**
53      * Input channel action on disconnect
54      */
55     public @Nullable String inputDisconnectAction;
56
57     /**
58      * Output channel action on connect
59      * (First connect after INITIALIATION)
60      */
61     public @Nullable String outputConnectAction;
62
63     /**
64      * Output channel action on reconnect
65      */
66     public @Nullable String outputReconnectAction;
67
68     /**
69      * Output channel action on disconnect
70      */
71     public @Nullable String outputDisconnectAction;
72 }