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.knx.internal.client;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
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;
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
26 * @author Simon Kaufmann - initial contribution and API
30 public class CustomKNXNetworkLinkIP extends KNXNetworkLinkIP {
32 public static final int TUNNELING = KNXNetworkLinkIP.TUNNELING;
33 public static final int TUNNELINGV2 = KNXNetworkLinkIP.TunnelingV2;
34 public static final int ROUTING = KNXNetworkLinkIP.ROUTING;
36 CustomKNXNetworkLinkIP(final int serviceMode, KNXnetIPConnection conn, KNXMediumSettings settings)
37 throws KNXException, InterruptedException {
38 super(serviceMode, conn, settings);