2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.pentair.internal.config;
15 import org.apache.commons.lang3.builder.ToStringBuilder;
18 * Configuration parameters for Serial Bridge
20 * @author Jeff James - initial contribution
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. */
30 public String toString() {
31 return new ToStringBuilder(this).append("serialPort", serialPort).append("id", id).toString();