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.modbus.sunspec.internal.dto;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * This class contains information parsed from the Common Model block
20 * @author Nagy Attila Gabor - Initial contribution
24 public class CommonModelBlock {
27 * Value = 0x0001. Uniquely identifies this as a SunSpec Common Model Block
29 public int sunSpecDID = 0x0001;
32 * Length of block in 16-bit registers
34 public int length = 0;
37 * Modbus unit ID - this is a unique identifier of the device
39 public int deviceAddress = 0;
41 // Manufacturer specific values
42 public String manufacturer = "";
43 public String model = "";
44 public String version = "";
45 public String serialNumber = "";