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.mecmeter;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * The {@link MecMeterDeviceConfiguration} is the class used to match the
20 * thing configuration.
22 * @author Florian Pazour - Initial contribution
23 * @author Klaus Berger - Initial contribution
26 public class MecMeterDeviceConfiguration {
27 public String ip = "";
28 public String password = "12345";
29 public int refreshInterval = 5;
31 public String getIp() {
35 public void setIp(String inetaddress) {
39 public String getPassword() {
43 public void setPassword(String pw) {
47 public int getRefreshInterval() {
48 return refreshInterval;
51 public void setRefreshInterval(int ri) {
55 public @Nullable String isValid() {
59 if (password.isBlank()) {
60 return "Password is missing";