]> git.basschouten.com Git - openhab-addons.git/blob
60ff4e09aa36e4a42b413d0e6e779f4a3f62e478
[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.jeelink.internal.connection;
14
15 /**
16  * Interface for connections to JeeLink USB Receivers.
17  *
18  * @author Volker Bier - Initial contribution
19  */
20 public interface JeeLinkConnection {
21     /**
22      * closes the connection to the receiver.
23      */
24     void closeConnection();
25
26     /**
27      * opens the connection to the receiver.
28      */
29     void openConnection();
30
31     /**
32      * returns port to which the receiver is connected.
33      */
34     String getPort();
35
36     /**
37      * sends the specified commands to the receiver (commands are semicolon separated)
38      */
39     void sendCommands(String initCommands);
40 }