From 8e8eb059fd9a4a873aa37683ef37d95647bc4d65 Mon Sep 17 00:00:00 2001 From: lolodomo Date: Mon, 15 Aug 2022 17:31:47 +0200 Subject: [PATCH] [serial] Allow custom baudrate and add option 2400 (#13265) Fix #13131 Signed-off-by: Laurent Garnier --- .../src/main/resources/OH-INF/i18n/serial.properties | 1 + .../src/main/resources/OH-INF/thing/thing-types.xml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/bundles/org.openhab.binding.serial/src/main/resources/OH-INF/i18n/serial.properties b/bundles/org.openhab.binding.serial/src/main/resources/OH-INF/i18n/serial.properties index ddaaebd32..7c964a99d 100644 --- a/bundles/org.openhab.binding.serial/src/main/resources/OH-INF/i18n/serial.properties +++ b/bundles/org.openhab.binding.serial/src/main/resources/OH-INF/i18n/serial.properties @@ -14,6 +14,7 @@ thing-type.serial.serialDevice.description = Represents a device thing-type.config.serial.serialBridge.baudRate.label = Baud Rate thing-type.config.serial.serialBridge.baudRate.description = Set the baud rate +thing-type.config.serial.serialBridge.baudRate.option.2400 = 2400 thing-type.config.serial.serialBridge.baudRate.option.4800 = 4800 thing-type.config.serial.serialBridge.baudRate.option.9600 = 9600 thing-type.config.serial.serialBridge.baudRate.option.19200 = 19200 diff --git a/bundles/org.openhab.binding.serial/src/main/resources/OH-INF/thing/thing-types.xml b/bundles/org.openhab.binding.serial/src/main/resources/OH-INF/thing/thing-types.xml index 09a67ec44..632d46fc4 100644 --- a/bundles/org.openhab.binding.serial/src/main/resources/OH-INF/thing/thing-types.xml +++ b/bundles/org.openhab.binding.serial/src/main/resources/OH-INF/thing/thing-types.xml @@ -26,8 +26,10 @@ true Set the baud rate + false 9600 +