]> git.basschouten.com Git - openhab-addons.git/commitdiff
[epsonprojector] Always set ready=true on disconnect and improve documentation (...
authormlobstein <michael.lobstein@gmail.com>
Sun, 7 Feb 2021 02:32:34 +0000 (20:32 -0600)
committerGitHub <noreply@github.com>
Sun, 7 Feb 2021 02:32:34 +0000 (18:32 -0800)
* Always set ready on disconnect and improve documentation
* improve documentation

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
bundles/org.openhab.binding.epsonprojector/README.md
bundles/org.openhab.binding.epsonprojector/src/main/java/org/openhab/binding/epsonprojector/internal/EpsonProjectorDevice.java

index 500ba4477d847ed287ccda3efc7b60e6be45f8ab..4f80e33217317256cfe18963c74fe581732ffe33 100644 (file)
@@ -1,7 +1,7 @@
 # Epson Projector Binding
 
-This binding is compatible with Epson projectors that support the ESC/VP21 protocol over the built-in ethernet port, serial port or USB to serial adapter.
-If your projector does not have a built-in ethernet port, you can connect to your projector's serial port via a TCP connection using a serial over IP device or by using`ser2net`.
+This binding is compatible with Epson projectors that support the ESC/VP21 protocol over the built-in network (ethernet or Wi-Fi) port, serial port or USB to serial adapter.
+If your projector does not have built-in networking, you can connect to your projector's serial port via a TCP connection using a serial over IP device or by using`ser2net`.
 
 ## Supported Things
 
@@ -27,7 +27,7 @@ The `projector-serial` thing has the following configuration parameters:
 The `projector-tcp` thing has the following configuration parameters:
 
 - _host_: IP address for the projector or serial over IP device
-- _port_: Port for the projector or serial over IP device; default 3629 for projectors with built-in ethernet connector
+- _port_: Port for the projector or serial over IP device; default 3629 for projectors with built-in ethernet connector or Wi-Fi
 - _pollingInterval_: Polling interval in seconds to update channel states | 5-60 seconds; default 10 seconds
 
 Some notes:
index 8e8651280743bd303bc72a03f05b1b365e81e6fa..f1679c5c8bc476beeae519b51e17572dab91a945 100644 (file)
@@ -206,11 +206,11 @@ public class EpsonProjectorDevice {
     public void disconnect() throws EpsonProjectorException {
         connection.disconnect();
         connected = false;
+        ready = true;
         ScheduledFuture<?> timeoutJob = this.timeoutJob;
         if (timeoutJob != null) {
             timeoutJob.cancel(true);
             this.timeoutJob = null;
-            ready = true;
         }
     }