]> git.basschouten.com Git - openhab-addons.git/blob
32677057dc0246e3357d578c4a2d757f4c670fae
[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 import org.eclipse.jdt.annotation.Nullable;
17
18 import tuwien.auto.calimero.IndividualAddress;
19
20 /**
21  * Client to retrieve further information about KNX devices.
22  *
23  * @author Simon Kaufmann - initial contribution and API
24  *
25  */
26 @NonNullByDefault
27 public interface DeviceInfoClient {
28
29     byte @Nullable [] readDeviceDescription(IndividualAddress address, int descType, boolean authenticate, long timeout)
30             throws InterruptedException;
31
32     byte @Nullable [] readDeviceMemory(IndividualAddress address, int startAddress, int bytes, boolean authenticate,
33             long timeout) throws InterruptedException;
34
35     byte @Nullable [] readDeviceProperties(IndividualAddress address, final int interfaceObjectIndex,
36             final int propertyId, final int start, final int elements, boolean authenticate, long timeout)
37             throws InterruptedException;
38
39     public boolean isConnected();
40 }