2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.epsonprojector.internal.connector;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.epsonprojector.internal.EpsonProjectorException;
19 * Base class for Epson projector communication.
21 * @author Pauli Anttila - Initial contribution
24 public interface EpsonProjectorConnector {
27 * Procedure for connecting to projector.
29 * @throws EpsonProjectorException
31 void connect() throws EpsonProjectorException;
34 * Procedure for disconnecting to projector controller.
36 * @throws EpsonProjectorException
38 void disconnect() throws EpsonProjectorException;
41 * Procedure for send raw data to projector.
47 * timeout to wait response in milliseconds.
49 * @throws EpsonProjectorException
51 String sendMessage(String data, int timeout) throws EpsonProjectorException;