]> git.basschouten.com Git - openhab-addons.git/blob
959da4bab1ac52664327b8c22b7cfb33a28764ad
[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.knx.internal.client;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 import tuwien.auto.calimero.KNXException;
18 import tuwien.auto.calimero.knxnetip.KNXnetIPConnection;
19 import tuwien.auto.calimero.link.KNXNetworkLinkIP;
20 import tuwien.auto.calimero.link.medium.KNXMediumSettings;
21
22 /**
23  * Subclass of {@link KNXNetworkLinkIP} which exposes the protected constructor in order to work-around
24  * https://github.com/calimero-project/calimero-core/issues/57
25  *
26  * @author Simon Kaufmann - initial contribution and API
27  *
28  */
29 @NonNullByDefault
30 public class CustomKNXNetworkLinkIP extends KNXNetworkLinkIP {
31
32     public static final int TUNNELING = KNXNetworkLinkIP.TUNNELING;
33     public static final int TUNNELINGV2 = KNXNetworkLinkIP.TunnelingV2;
34     public static final int ROUTING = KNXNetworkLinkIP.ROUTING;
35
36     CustomKNXNetworkLinkIP(final int serviceMode, KNXnetIPConnection conn, KNXMediumSettings settings)
37             throws KNXException, InterruptedException {
38         super(serviceMode, conn, settings);
39     }
40 }