]> git.basschouten.com Git - openhab-addons.git/blob
21e2f96ca241bfca3ea826b332bc8ef744adca7e
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.GroupAddress;
18 import tuwien.auto.calimero.IndividualAddress;
19
20 /**
21  * Callback interface for KNX bus messages
22  *
23  * @author Simon Kaufmann - Initial contribution and API
24  */
25 @NonNullByDefault
26 public interface BusMessageListener {
27
28     /**
29      * Called when the KNX bridge receives a group write telegram
30      *
31      * @param bridge
32      * @param destination
33      * @param asdu
34      */
35     public void onGroupWrite(AbstractKNXClient client, IndividualAddress source, GroupAddress destination, byte[] asdu);
36
37     /**
38      * Called when the KNX bridge receives a group read telegram
39      *
40      * @param bridge
41      * @param destination
42      * @param asdu
43      */
44     public void onGroupRead(AbstractKNXClient client, IndividualAddress source, GroupAddress destination, byte[] asdu);
45
46     /**
47      * Called when the KNX bridge receives a group read response telegram
48      *
49      * @param bridge
50      * @param destination
51      * @param asdu
52      */
53     public void onGroupReadResponse(AbstractKNXClient client, IndividualAddress source, GroupAddress destination,
54             byte[] asdu);
55 }