]> git.basschouten.com Git - openhab-addons.git/blob
37093dba91611e35767a2d21b4d6ae07a232576e
[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.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 client
32      * @param source
33      * @param destination
34      * @param asdu
35      */
36     public void onGroupWrite(AbstractKNXClient client, IndividualAddress source, GroupAddress destination, byte[] asdu);
37
38     /**
39      * Called when the KNX bridge receives a group read telegram
40      *
41      * @param client
42      * @param source
43      * @param destination
44      * @param asdu
45      */
46     public void onGroupRead(AbstractKNXClient client, IndividualAddress source, GroupAddress destination, byte[] asdu);
47
48     /**
49      * Called when the KNX bridge receives a group read response telegram
50      *
51      * @param client
52      * @param source
53      * @param destination
54      * @param asdu
55      */
56     public void onGroupReadResponse(AbstractKNXClient client, IndividualAddress source, GroupAddress destination,
57             byte[] asdu);
58 }