]> git.basschouten.com Git - openhab-addons.git/blob
d3e18b4586bae695144bb680e9382d6ad0d72b14
[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.ekey.internal.api;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.core.thing.ThingStatus;
18
19 /**
20  * The {@link EkeyPacketListener} is in interface for an Ekey packet received consumer
21  *
22  * @author Hans-Jörg Merk - Initial contribution
23  */
24 @NonNullByDefault
25 public interface EkeyPacketListener {
26     /**
27      * This method will be called in case a message was received.
28      *
29      */
30     void messageReceived(byte[] message);
31
32     /**
33      * This method will be called in case the connection status has changed.
34      *
35      */
36     void connectionStatusChanged(ThingStatus status, byte @Nullable [] message);
37 }