diff --git a/bundles/binding/org.openhab.binding.serial/README.md b/bundles/binding/org.openhab.binding.serial/README.md index 8db4ac85fd1..801ebde466e 100644 --- a/bundles/binding/org.openhab.binding.serial/README.md +++ b/bundles/binding/org.openhab.binding.serial/README.md @@ -53,7 +53,8 @@ The format has the following variations: ``` serial="@" -serial="@,REGEX()" +serial="@,REGEX()" +serial="@,CHARSET(ISO-8859-1)" serial="@,BASE64" serial="@,ON(),OFF()" serial="@,REGEX(), UP(),DOWN(), STOP()" @@ -64,7 +65,7 @@ where: * `` is the identification of the serial port on the host system, e.g. `COM1` on Windows, `/dev/ttyS0` on Linux or `/dev/tty.PL2303-0000103D` on Mac. The same `` can be bound to multiple items. * `` is the baud rate of the port. If no baud rate is specified, the binding defaults to 9600 baud. * `REGEX()` allows parsing for special strings or numbers in the serial stream. A capture group (e.g. REGEX(Position:([0-9.]*)) can be used to capture "12" in `Position:12` or substitution (e.g. REGEX(s/Position:100/ON/) or REGEX(s/Position:100/ON/g)) to replace (FIRST or ALL) "Position:100" strings in response with "ON". This is based on the [RegEx Service](https://github.com/openhab/openhab1-addons/wiki/Transformations#regex-transformation-service) and [ESH RegExTransformationService](https://github.com/eclipse/smarthome/tree/master/extensions/transform/org.eclipse.smarthome.transform.regex). This is optional. -* `BASE64()` enables the Base64 mode. With this mode all data received on the serial port is saved in Base64 format. All data that is sent to the serial port also has to be Base64 encoded. (This was implemented because some serial devices are using bytes that are not supported by the REST interface). +* `BASE64` enables the Base64 mode. With this mode all data received on the serial port is saved in Base64 format. All data that is sent to the serial port also has to be Base64 encoded. (This was implemented because some serial devices are using bytes that are not supported by the REST interface). * `ON(),OFF()` used in conjunction with a Switch, this mapping will send specific commands to serial port and also match a serial command to specific ON/OFF state. This makes it unnecessary to use a rule to send a command to serial. * `UP(),DOWN(),STOP()` used in conjunction with a Rollershutter, this mapping will send specific commands to serial port. Use REGEX to parse Rollershutter postion (0-100%) coming as feedback over serial link. * `CHARSET()` set's the charset to be used for converting to a String and back to bytes when writing. (e.g. UTF-8, ISO-8859-1, etc.)