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.nibeheatpump.internal.message;
16 * The {@link ModbusValue} define class for Modbus values of the Nibe communication.
19 * @author Pauli Anttila - Initial contribution
21 public class ModbusValue {
23 private int coilAddress;
26 public ModbusValue(int coilAddress, int value) {
27 this.coilAddress = coilAddress;
31 public int getCoilAddress() {
35 public void setCoilAddress(int coilAddress) {
36 this.coilAddress = coilAddress;
39 public int getValue() {
43 public void setValue(int value) {
48 public String toString() {
51 str += "Coil address = " + coilAddress;
52 str += ", Value = " + value;