]> git.basschouten.com Git - openhab-addons.git/blob
99376ff6b29202cfd9b56bbcec6b53e144ce214c
[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.dmx.internal.dmxoverethernet;
14
15 /**
16  * The {@link ArtnetNode} represents a sending or receiving node with address and port
17  * default address is set to 6454 for ArtNet
18  *
19  * @author Jan N. Klug - Initial contribution
20  *
21  */
22 public class ArtnetNode extends IpNode {
23     public static final int DEFAULT_PORT = 6454;
24
25     /**
26      * constructor with address
27      *
28      * @param addrString address in format address[:port]
29      */
30     public ArtnetNode(String addrString) {
31         super(addrString);
32         if (port == 0) {
33             port = DEFAULT_PORT;
34         }
35     }
36 }