]> git.basschouten.com Git - openhab-addons.git/blob
44968c1a71c82562be3151ea59556c62b3c7564a
[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.modbus.sunspec.internal.dto;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * This class contains information parsed from the Common Model block
19  *
20  * @author Nagy Attila Gabor - Initial contribution
21  *
22  */
23 @NonNullByDefault
24 public class CommonModelBlock {
25
26     /**
27      * Value = 0x0001. Uniquely identifies this as a SunSpec Common Model Block
28      */
29     public int sunSpecDID = 0x0001;
30
31     /**
32      * Length of block in 16-bit registers
33      */
34     public int length = 0;
35
36     /**
37      * Modbus unit ID - this is a unique identifier of the device
38      */
39     public int deviceAddress = 0;
40
41     // Manufacturer specific values
42     public String manufacturer = "";
43     public String model = "";
44     public String version = "";
45     public String serialNumber = "";
46 }