]> git.basschouten.com Git - openhab-addons.git/blob
aa49effa210bd4db15c180d884a7bc22a0fbb1d3
[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.echonetlite.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The {@link EchonetDeviceConfig} class contains fields mapping thing configuration parameters.
20  *
21  * @author Michael Barker - Initial contribution
22  */
23 @NonNullByDefault
24 public class EchonetDeviceConfig {
25
26     /**
27      * Sample configuration parameters. Replace with your own.
28      */
29     @Nullable
30     public String hostname;
31     public int port;
32     public int groupCode;
33     public int classCode;
34     public int instance;
35     public long pollIntervalMs;
36     public long retryTimeoutMs;
37
38     @Override
39     public String toString() {
40         return "EchonetLiteConfiguration{" + "hostname='" + hostname + '\'' + ", port=" + port + ", groupCode="
41                 + groupCode + ", classCode=" + classCode + ", instance=" + instance + ", pollIntervalMs="
42                 + pollIntervalMs + ", retryTimeoutMs=" + retryTimeoutMs + '}';
43     }
44 }