Add note about uart parity on 1.21.0 and above (#1355)

This commit is contained in:
Jesse Hills 2021-08-01 20:56:18 +12:00 committed by GitHub
parent def8aff094
commit eb6058678d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,12 +32,19 @@ In some cases only **TX** or **RX** exists as the device at the other end only a
ones used for logging. Therefore the UART data on the ESP8266 can have occasional data glitches especially with ones used for logging. Therefore the UART data on the ESP8266 can have occasional data glitches especially with
higher baud rates.. higher baud rates..
.. note::
From ESPHome 1.21.0 the ``ESP8266SoftwareSerial`` UART ``write_byte`` function had the parity bit fixed to be correct
for the data being sent. This could cause unexpected issues if you are using the Software Serial and have devices that
explicity check the parity. Most likely you will need to flip the ``parity`` flag in YAML.
.. code-block:: yaml .. code-block:: yaml
# Example configuration entry # Example configuration entry
uart: uart:
tx_pin: D0 tx_pin: 1
rx_pin: D1 rx_pin: 3
baud_rate: 9600 baud_rate: 9600
Configuration variables: Configuration variables: