]> git.basschouten.com Git - openhab-addons.git/blob
9c2e36ba09a9c9d648cd3b8bd03099042ad7b6f1
[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.pentair.internal.config;
14
15 import org.apache.commons.lang3.builder.ToStringBuilder;
16
17 /**
18  * Configuration parameters for Serial Bridge
19  *
20  * @author Jeff James - initial contribution
21  *
22  */
23 public class PentairSerialBridgeConfig {
24     /** path or name of serial port, usually /dev/ttyUSB0 format for linux/mac, COM1 for windows */
25     public String serialPort;
26     /** ID to use when sending commands on the Pentair RS485 bus. */
27     public Integer id;
28
29     @Override
30     public String toString() {
31         return new ToStringBuilder(this).append("serialPort", serialPort).append("id", id).toString();
32     }
33 }